MCP tools: Events
The tools of the MCP server under Events. The account's event log: page back through it, or poll it forward.
events_list
Tool for events.list: GET /v1/events
The account's event log. Without after: newest first as a page, with nextCursor to continue (events with a smaller seq). With after: the events with a larger seq, oldest first, with latestSeq to poll from next; start from the newest seq you have, or 0. after and cursor cannot be combined. Filters apply before paging or polling, across all stored history. Inbox-scoped keys see their inbox's events only. OAuth: requires events:read, mail:read.
- Offered to
- A connected agent with an approval that covers
events:readandmail:read. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: any API key, or a console session. - Annotations
readOnlyHint: true,destructiveHint: false,idempotentHint: true,openWorldHint: false. The tool reads only; calling it again with the same input has no further effect.
Input
inboxIdstringoptionalOnly this inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthreadIdstringoptionalOnly events whose stored payload names this thread. Can be combined with inboxId and type. A valid id with no visible matching events returns an empty result, including ids from another account or inbox. Trashing a thread does not remove its stored events. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mtype"message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed"optionalOnly this event type.
limitintegeroptionalPage size, 1 to 100. Defaults to 50.
cursorstringoptionalPage from here: events with a smaller
seq. Example:1041afterstringoptionalPoll from here: events with a larger
seq, oldest first. Example:1042
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the query parameter inboxId |
threadId | the query parameter threadId |
type | the query parameter type |
limit | the query parameter limit |
cursor | the query parameter cursor |
after | the query parameter after |
{
"name": "events_list",
"arguments": {}
}events_get
Tool for events.get: GET /v1/events/{eventId}
The event, the payload exactly as it was signed and sent, and every delivery it produced with its status, attempts and last error. Inbox-scoped keys see the inbox webhook's delivery only. OAuth: requires events:read, mail:read.
- Offered to
- A connected agent with an approval that covers
events:readandmail:read. The default agent permissions do not cover it: the agent has to ask for it, and the person has to approve it. With a key: any API key, or a console session. - Annotations
readOnlyHint: true,destructiveHint: false,idempotentHint: true,openWorldHint: false. The tool reads only; calling it again with the same input has no further effect.
Input
eventIdstringrequiredThe event. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4r
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
eventId | the path parameter eventId |
{
"name": "events_get",
"arguments": {
"eventId": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r"
}
}
