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:read and mail: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
  • inboxIdstringoptional

    Only this inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • threadIdstringoptional

    Only 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_01jc5a1b2c3d4e5f6g7h8j9k0m

  • type"message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed"optional

    Only this event type.

  • limitintegeroptional

    Page size, 1 to 100. Defaults to 50.

  • cursorstringoptional

    Page from here: events with a smaller seq. Example: 1041

  • afterstringoptional

    Poll from here: events with a larger seq, oldest first. Example: 1042

Inputs that are not fields of the request body
InputSent as
inboxIdthe query parameter inboxId
threadIdthe query parameter threadId
typethe query parameter type
limitthe query parameter limit
cursorthe query parameter cursor
afterthe query parameter after

Example call

{
  "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:read and mail: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
  • eventIdstringrequired

    The event. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

Inputs that are not fields of the request body
InputSent as
eventIdthe path parameter eventId

Example call

{
  "name": "events_get",
  "arguments": {
    "eventId": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r"
  }
}

Up Down to move, Enter to open, Esc to close