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
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
{
"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
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zurlstringrequiredAn 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
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
{
"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
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
{
"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
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
{
"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
inboxIdstringrequiredThe inbox. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zlimitintegeroptionalPage size, 1 to 100. Defaults to 50.
cursorstringoptionalThe delivery id to continue from, from the previous page's
nextCursor. Example:whd_01jc5f1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
inboxId | the path parameter inboxId |
limit | the query parameter limit |
cursor | the query parameter cursor |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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.
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
namestringoptionalA label, at most 100 characters. Example:
OrchestratorurlstringrequiredAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
inboxIdsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example:
["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
endpointIdstringrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
endpointId | the path parameter endpointId |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
endpointIdstringrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0knamestringoptionalA label, at most 100 characters. Example:
OrchestratorurlstringoptionalAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
inboxIdsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example:
["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
endpointId | the path parameter endpointId |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
endpointIdstringrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
endpointId | the path parameter endpointId |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
endpointIdstringrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
endpointId | the path parameter endpointId |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
endpointIdstringrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
endpointId | the path parameter endpointId |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
endpointIdstringrequiredThe endpoint. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0klimitintegeroptionalPage size, 1 to 100. Defaults to 50.
cursorstringoptionalThe delivery id to continue from, from the previous page's
nextCursor. Example:whd_01jc5f1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
endpointId | the path parameter endpointId |
limit | the query parameter limit |
cursor | the query parameter cursor |
{
"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:manageandevents: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: an account-scoped key or a console session; an inbox-scoped key gets 403forbidden. - 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
deliveryIdstringrequiredThe delivery. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0k
Inputs that are not fields of the request body
| Input | Sent as |
|---|---|
deliveryId | the path parameter deliveryId |
{
"name": "deliveries_retry",
"arguments": {
"deliveryId": "whd_01jc5f1a2b3c4d5e6f7g8h9j0k"
}
}
