MCP tools: Webhooks

The tools of the MCP server under Webhooks. The inbox webhook, account endpoints, their signed deliveries and the delivery log.

inboxes_webhook_get

Tool for inboxes.webhook.get: GET /v1/inboxes/{inboxId}/webhook

The inbox's webhook URL and its masked secret; both null when the inbox has none. OAuth: not available to apps.

Offered to
API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
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
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId

Example call

{
  "name": "inboxes_webhook_get",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}

inboxes_webhook_set

Tool for inboxes.webhook.set: PUT /v1/inboxes/{inboxId}/webhook

One URL per inbox that receives every event for it. Setting it again replaces the URL and mints a new signing secret, returned once. OAuth: not available to apps.

Offered to
API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false. The tool changes something; can remove something, or replace a secret that stops verifying at once.
One-time secret
The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.
Input
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • urlstringrequired

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId

Example call

{
  "name": "inboxes_webhook_set",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "url": "https://agent.example.com/hooks/doorman"
  }
}

inboxes_webhook_rotateSecret

Tool for inboxes.webhook.rotateSecret: POST /v1/inboxes/{inboxId}/webhook/rotate-secret

Mints a new signing secret and returns it once. Deliveries signed with the old one stop verifying at once, so update the receiver first. OAuth: not available to apps.

Offered to
API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false. The tool changes something; can remove something, or replace a secret that stops verifying at once.
One-time secret
The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.
Input
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId

Example call

{
  "name": "inboxes_webhook_rotateSecret",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}

inboxes_webhook_delete

Tool for inboxes.webhook.delete: DELETE /v1/inboxes/{inboxId}/webhook

The inbox stops receiving deliveries; its delivery log stays with the events. OAuth: not available to apps.

Offered to
API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.
Input
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId

Example call

{
  "name": "inboxes_webhook_delete",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}

inboxes_webhook_deliveries

Tool for inboxes.webhook.deliveries: GET /v1/inboxes/{inboxId}/webhook/deliveries

The inbox webhook's delivery log, newest first, including deliveries to URLs the inbox no longer points at. OAuth: not available to apps.

Offered to
API keys only. A connected agent is never offered this tool. With a key: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
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
  • inboxIdstringrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • limitintegeroptional

    Page size, 1 to 100. Defaults to 50.

  • cursorstringoptional

    The delivery id to continue from, from the previous page's nextCursor. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
inboxIdthe path parameter inboxId
limitthe query parameter limit
cursorthe query parameter cursor

Example call

{
  "name": "inboxes_webhook_deliveries",
  "arguments": {
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  }
}

webhooks_list

Tool for webhooks.list: GET /v1/webhooks

The account's webhook endpoints, oldest first. Each receives the events it subscribes to, for the inboxes it is scoped to, with its own signing secret. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false. The tool reads only; calling it again with the same input has no further effect.

The tool takes no input.

Example call

{
  "name": "webhooks_list",
  "arguments": {}
}

webhooks_create

Tool for webhooks.create: POST /v1/webhooks

An https URL without credentials. Empty eventTypes or inboxIds mean all. The signing secret is returned once. An account holds at most 20 endpoints. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false. The tool changes something.
One-time secret
The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.
Input
  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

  • urlstringrequired

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

  • eventTypes("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

    Event types to receive; empty or absent means all.

  • inboxIdsstring[]optional

    Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: ["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]

  • enabledbooleanoptional

    Whether deliveries start right away. Defaults to true.

Example call

{
  "name": "webhooks_create",
  "arguments": {
    "name": "Orchestrator",
    "url": "https://agent.example.com/hooks/doorman",
    "eventTypes": [
      "message.received"
    ],
    "inboxIds": [],
    "enabled": true
  }
}

webhooks_get

Tool for webhooks.get: GET /v1/webhooks/{endpointId}

One endpoint with its newest delivery. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
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
  • endpointIdstringrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
endpointIdthe path parameter endpointId

Example call

{
  "name": "webhooks_get",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}

webhooks_update

Tool for webhooks.update: PATCH /v1/webhooks/{endpointId}

Any of the fields; the ones left out stay as they are. A disabled endpoint receives nothing until it is enabled again. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false. The tool changes something; calling it again with the same input has no further effect.
Input
  • endpointIdstringrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

  • urlstringoptional

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

  • eventTypes("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

    Event types to receive; empty or absent means all.

  • inboxIdsstring[]optional

    Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: ["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]

  • enabledbooleanoptional

    Whether deliveries start right away. Defaults to true.

Inputs that are not fields of the request body
InputSent as
endpointIdthe path parameter endpointId

Example call

{
  "name": "webhooks_update",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
    "enabled": false
  }
}

webhooks_delete

Tool for webhooks.delete: DELETE /v1/webhooks/{endpointId}

Removes the endpoint. Its delivery log stays with the events, and a delivery still queued for it fails as target_unavailable. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false. The tool changes something; can remove something, or replace a secret that stops verifying at once; calling it again with the same input has no further effect.
Input
  • endpointIdstringrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
endpointIdthe path parameter endpointId

Example call

{
  "name": "webhooks_delete",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}

webhooks_rotateSecret

Tool for webhooks.rotateSecret: POST /v1/webhooks/{endpointId}/rotate-secret

Mints a new signing secret and returns it once. Deliveries signed with the old one stop verifying at once, so update the receiver first. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false. The tool changes something; can remove something, or replace a secret that stops verifying at once.
One-time secret
The answer can carry a key's token or a signing secret that is shown once. The server adds a notice to store it now.
Input
  • endpointIdstringrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
endpointIdthe path parameter endpointId

Example call

{
  "name": "webhooks_rotateSecret",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}

webhooks_test

Tool for webhooks.test: POST /v1/webhooks/{endpointId}/test

One signed message.received sample with "test": true, fresh identifiers and one of the account's inboxes as the recipient, posted to the URL whether or not the endpoint is enabled. Nothing is stored. Answers after the usual 15 second timeout at most. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true. The tool changes something; reaches outside the account: it sends mail or posts to a URL.
Input
  • endpointIdstringrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
endpointIdthe path parameter endpointId

Example call

{
  "name": "webhooks_test",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}

webhooks_deliveries

Tool for webhooks.deliveries: GET /v1/webhooks/{endpointId}/deliveries

The endpoint's delivery log, newest first. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
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
  • endpointIdstringrequired

    The endpoint. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • limitintegeroptional

    Page size, 1 to 100. Defaults to 50.

  • cursorstringoptional

    The delivery id to continue from, from the previous page's nextCursor. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
endpointIdthe path parameter endpointId
limitthe query parameter limit
cursorthe query parameter cursor

Example call

{
  "name": "webhooks_deliveries",
  "arguments": {
    "endpointId": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
  }
}

deliveries_retry

Tool for deliveries.retry: POST /v1/deliveries/{deliveryId}/retry

Puts a delivered or failed delivery back in the queue. The attempt is numbered after the previous ones: a delivery that used its whole budget gets exactly one more attempt, and one that still had attempts left follows the usual retry schedule from where it was. A retry to a target that was removed or repointed since fails as target_unavailable. OAuth: requires webhooks:manage, events:read, mail:read.

Offered to
A connected agent with an approval that covers webhooks:manage and 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: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.
Annotations
readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true. The tool changes something; reaches outside the account: it sends mail or posts to a URL.
Input
  • deliveryIdstringrequired

    The delivery. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

Inputs that are not fields of the request body
InputSent as
deliveryIdthe path parameter deliveryId

Example call

{
  "name": "deliveries_retry",
  "arguments": {
    "deliveryId": "whd_01jc5f1a2b3c4d5e6f7g8h9j0k"
  }
}

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