Skip to main content

Email

Email tools are available through the OneMail MCP endpoint.

POST https://mail.onehelio.com/mcp

The endpoint requires an Auth0 bearer token or a OneMail API key.

Required headers

Authorization: Bearer <onemail-token-or-api-key>
Content-Type: application/json
Accept: application/json, text/event-stream

Tools

ToolPurpose
list_messagesList recent messages by folder or search text
get_messageRead one owned message
send_emailSend an email and store the sent copy
delete_emailDelete a message using OneMail semantics
move_emailMove a message to a folder
create_calendar_eventCreate a calendar event
modify_calendar_eventUpdate a calendar event
delete_calendar_eventDelete a calendar event
search_contactsSearch contacts by email or display name
list_shared_mailboxesList shared mailboxes the user can access
list_groupsList distribution groups the user belongs to or owns

List messages

curl https://mail.onehelio.com/mcp \
-H "Authorization: Bearer $ONEMAIL_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "list_messages",
"arguments": {
"limit": 3
}
}
}'

Search contacts

{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "search_contacts",
"arguments": {
"query": "test",
"limit": 5
}
}
}