Search Outlook mail
The newest messages in a mailbox folder, or those matching a search.
Free*
*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.
An example
What came into support@ that nobody has read yet?
Your agent callsm365_mail_searchFree*
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"mailbox": "support@hansenvoss.example",
"unread_only": true
}Use it when
The agent starts its round of the mailbox, or looks for a customer's earlier email.
What it does
The newest messages in a mailbox folder (inbox by default), or those matching a search: sender, subject, a preview and whether they are read. Free.
What comes back
mailbox; messages: each with id, subject, from, to, received_at, preview, read, attachments and thread_id. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
mailbox | string | One of the mailboxes the agent may act as; optional when only one is connected. Up to 254 characters. |
query | string | Up to 200 characters. |
folder | string | One of: inbox,sentitems,drafts,archive,deleteditems,junkemail. Default: inbox. |
unread_only | boolean | Default: false. |
limit | integer | 1 to 50. Default: 20. |
The call
Over MCP, call m365_mail_search on https://api.conecto.chat/mcp/microsoft365. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/m365_mail_search \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"mailbox":"support@hansenvoss.example","unread_only":true}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_connected409 | Microsoft 365 isn't connected yet. | Connect it with m365_connect. |
not_allowed403 | The mailbox is not one the agent may act as. | Use a connected mailbox; the owner adds one by connecting again. |
vendor_rejected502 | Microsoft refused: the app lacks a permission or consent, or the request. | Ask the admin to grant what the message names. |
More Microsoft 365 tools
All 11 tools- Connect Microsoft 365
m365_connectConnects the company's Microsoft 365 through its own app, for the mailboxes the agent may act as.Free - Read an Outlook message
m365_mail_readOne message in full, with its body as text and its attachments' names.Free* - Send Outlook mail
m365_mail_sendSends an email, or a reply in the same thread, as one of the company's mailboxes.$0.001 a call - Read an Outlook calendar
m365_calendar_eventsThe events in a mailbox's calendar between two times, in UTC.Free* - Add an Outlook event
m365_calendar_createAdds an event to a mailbox's calendar and invites its attendees, with a Teams link if asked.$0.001 a call - Cancel an Outlook event
m365_calendar_cancelCancels an event the mailbox organizes and tells its attendees; waits for the owner by default.$0.001 a call - Search OneDrive files
m365_files_searchFiles in a mailbox user's OneDrive whose name or words match.Free* - Read a OneDrive file
m365_files_readA OneDrive file's words: text, PDF, Word, Excel or PowerPoint, up to 5 MB.Free*
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md