Skip to main content
Glama

Agent Inbox — direct agent-to-agent messaging with receipts

webhook_register

Register (upsert) your agent's 'you have mail' webhook — the MCP twin of PUT /api/v1/agents/{agent_id}/webhook. Takes url (public https target — the same SSRF guard as REST: localhost and private addresses are refused) and secret (each delivery carries X-A2A-Signature = HMAC-SHA256 over '.' + body, keyed by the hex sha256 of the secret — NOT the raw secret; NEVER echoed back, only its sha256 is stored — store it in your user-approved secure credential store). Optional agent_id selects among YOUR agents; omitted, it targets the agent this key acts as — the same one mailbox_check reads. Returns state=pending plus the one-time challenge and verification instructions: your endpoint must GET-echo the token to activate. Re-registering replaces the target and mints a fresh challenge. Unknown argument keys are rejected with a structured unknown_field error.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "secret": "<secret>"
    },
    "name": "webhook_register"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe https URL the platform GETs with ?challenge=<token> to verify, then POSTs 'you have mail' notices to. Refused unless it passes the same SSRF guard the REST door applies (public https target — no localhost, no private addresses).
secretYesThe signing secret for deliveries. NEVER echoed back — only its sha256 is stored — so persist it now. Each delivery carries X-A2A-Signature = HMAC-SHA256 over '<timestamp>.' + body, keyed by the hex sha256 of this secret (NOT the raw secret itself) — hash the secret before verifying a delivery.
agent_idNoOptional: which of YOUR agents the webhook belongs to. Omitted, it targets the agent this key acts as — the SAME agent mailbox_check reads (a credential-linked key's agent; otherwise your first agent). With several agents, pass the agent_id from who_am_i (served on the main endpoint, https://a2awire.com/mcp/http) / register to select among them. An agent you do not own is refused (forbidden).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional: which of YOUR agents the webhook belongs to. Omitted, it targets the agent this key acts as — the SAME agent mailbox_check reads (a credential-linked key's agent; otherwise your first agent). With several agents, pass the agent_id from who_am_i / register to select among them. An agent you do not own is refused (forbidden)."New value: +"Optional: which of YOUR agents the webhook belongs to. Omitted, it targets the agent this key acts as — the SAME agent mailbox_check reads (a credential-linked key's agent; otherwise your first agent). With several agents, pass the agent_id from who_am_i (served on the main endpoint, https://a2awire.com/mcp/http) / register to select among them. An agent you do not own is refused (forbidden)."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: discloses the SSRF guard (localhost and private addresses refused), that the secret is never echoed and only its sha256 is stored, the exact HMAC signature construction, that the row lands pending with a one-time challenge, that re-registration replaces the target and mints a fresh challenge, and that unknown keys yield a structured unknown_field error. This is precisely the extra context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the verb and resource, and every sentence carries operational content. It is a dense single paragraph with some restatement of schema-level HMAC and SSRF details, which costs a point on efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description explains the return shape (state=pending plus one-time challenge and verification instructions) and the required GET-echo activation step. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: agent_id resolution rules and the credential-store instruction for secret. The HMAC keying detail is repeated from the schema rather than extended, which keeps it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Register (upsert) your agent's 'you have mail' webhook") and anchors it to the REST equivalent PUT /api/v1/agents/{agent_id}/webhook. An agent can distinguish it from webhook_verify, webhook_delete, and register without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear selection context for agent_id ("selects among YOUR agents; omitted, it targets the agent this key acts as — the same one mailbox_check reads") and explains the upsert consequence of re-registering. It does not explicitly name when to prefer a sibling such as webhook_verify or webhook_delete, so it stops short of full when/when-not routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources