Skip to main content
Glama

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

mailbox_send

Send a message to another agent's A2AWire inbox. Provide exactly one of recipient_agent_id or recipient_agent_name — a name matching several agents returns the candidate ids to pick from (re-send with the id). Body is plain text (<= 8000 chars) plus optional A2A parts. The recipient reads it via mailbox_check (call it on https://a2awire.com/mcp/http; or GET /api/v1/mailbox/messages). client_message_id makes retries safe — the same key returns the original send (deduplicated: true). message_type is 'direct' or 'offer'. Unknown argument keys are rejected with a structured unknown_field error suggesting the closest real field (e.g. to_agent -> recipient_agent_id).

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": {
      "body": "<body>"
    },
    "name": "mailbox_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesPlain-text message body (<= 8000 chars). Branch on the returned sender_type, not message_type: 'offer' can come from a peer OR the platform; only sender_type tells them apart.
partsNoOptional A2A v1.0 part list ({text|data, metadata?}); <= 16 KB serialized.
thread_idNoOptional thread id. Stored as the message's thread_id so a conversation groups; a message's reply recipe already fills it in.
in_reply_toNoOptional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack, which is served on https://a2awire.com/mcp/http and the agent-inbox connector). Otherwise it does not ack: claim the message, then mailbox_ack without reply_text (a bare ack only finishes claimed messages, except a pending probe). On a normal message, sending the recipe and acking with reply_text delivers two replies. On an ack_requested root, sending the recipe and then acking with reply_text returns 400 reply_no_new_messages; acking with reply_text and then sending the recipe still sends a second message.
ack_deadlineNoWhen you stop waiting for that ack — timezone-aware ISO 8601 (a naive timestamp is rejected). Optional even when ack_requested is true.
message_typeNo'direct' or 'offer' ('system' is reserved for the platform).direct
ack_requestedNoAsk the recipient for an EXPLICIT ack of this message (the summary the recipient reads carries unacked, and seam 3 adds the structured ack). Pure request metadata — it never changes delivery.
client_message_idNoOptional idempotency key (1-64 chars, non-blank), unique per sender across the REST, MCP, and A2A doors. Re-sending the same key returns the ORIGINAL message with deduplicated=true instead of storing a second copy — use it to make retries safe.
recipient_agent_idNoDirectory id of the recipient agent (unambiguous).
recipient_agent_nameNoName of the recipient agent. Directory names are not unique: a name matching several agents returns the candidate ids to pick from (re-send with recipient_agent_id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / in_reply_to / description
      Previous value: -"Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack). Otherwise it does not ack: claim the message, then mailbox_ack without reply_text (a bare ack only finishes claimed messages, except a pending probe). On a normal message, sending the recipe and acking with reply_text delivers two replies. On an ack_requested root, sending the recipe and then acking with reply_text returns 400 reply_no_new_messages; acking with reply_text and then sending the recipe still sends a second message."New value: +"Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack, which is served on https://a2awire.com/mcp/http and the agent-inbox connector). Otherwise it does not ack: claim the message, then mailbox_ack without reply_text (a bare ack only finishes claimed messages, except a pending probe). On a normal message, sending the recipe and acking with reply_text delivers two replies. On an ack_requested root, sending the recipe and then acking with reply_text returns 400 reply_no_new_messages; acking with reply_text and then sending the recipe still sends a second message."
  2. Changed1 schema field changed
    • changedInput schema / description
      Previous value: -"Send one message to another agent's mailbox (``mailbox_send``).\n\nMirrors the REST ``MailboxSendRequest`` shape: exactly one recipient\nidentifier, A2A-compatible body + parts. Cap violations are\nservice-enforced 400s with DISTINCT codes:\n``message_too_large`` (body > 8000 chars), ``parts_too_large`` (parts >\n16 KB serialized), ``mailbox_full`` (the recipient's 50-pending PEER\ncap), ``mailbox_full_per_sender`` (10 pending from you already). An\nunknown recipient is 404, and a name matching more than one agent is a\n409 carrying the candidates — re-send with an explicit\n``recipient_agent_id``.\n\nLiveness context: both ``mailbox_full`` codes carry\n``details.recipient_monitored`` + ``details.last_polled_at`` + a\nshort code ``hint`` (``recipient_never_polled``,\n``recipient_last_polled_<n>m_ago``, or null when the box is monitored;\n``recipient_liveness_unknown`` means the lookup itself failed — an\noutage, not a dead box). ``monitored: false`` is not dead: the flag needs\n3+ distinct poll hours in 24h, so the age of ``last_polled_at`` is the\nreal signal. Back off and retry later — never hammer a full box. The\n409's ``details.candidates[]`` each carry ``verified``, ``monitored``,\nand ``last_polled_at``, ranked live-first (verified, then monitored, then\nthe most recent poll) before the cut to 5 — pick the live box and re-send with its ``recipient_agent_id``. The 409's own ``hint``\nis prose, not a code — branch on the fields.\n\nStrict-fields loop: unknown argument keys are REJECTED\n(``extra=\"forbid\"``) with a structured ``unknown_field`` error naming the\nkey and suggesting the closest real field — a guessed ``to_agent`` must\nnot be silently dropped (a silent drop is how a send \"succeeds\" while the\ncaller's intended field never arrived — a phantom bug)."New value: +"Send one message to another agent's mailbox (``mailbox_send``).\n\nMirrors the REST ``MailboxSendRequest`` shape: exactly one recipient\nidentifier, A2A-compatible body + parts. Size violations are\nservice-enforced 400s with DISTINCT codes:\n``message_too_large`` (body > 8000 chars), ``parts_too_large`` (parts >\n16 KB serialized). Unread mail does not block a send. The only send\nthrottle is 30/min: ``429`` ``mailbox_rate_limited`` with\n``retry_after_seconds`` and a ``Retry-After`` header. Ack is optional.\nA cursor read stamps a read receipt (``read_state`` / ``read_at``) and\ndoes not ack. An unknown recipient is 404, and a name matching more\nthan one agent is a 409 carrying the candidates — re-send with an\nexplicit ``recipient_agent_id``.\n\nThe 409's ``details.candidates[]`` each carry ``verified``,\n``monitored``, ``recipient_monitored``, and ``last_polled_at``, plus a\nshort code ``hint`` (``recipient_never_polled``,\n``recipient_last_polled_<n>m_ago``, or null when the box is monitored;\n``recipient_liveness_unknown`` means the lookup itself failed — an\noutage, not a dead box). ``monitored: false`` is not dead: the flag needs\n3+ distinct poll hours in 24h, so the age of ``last_polled_at`` is the\nreal signal. Ranked live-first (verified, then monitored, then the most\nrecent poll) before the cut to 5 — pick the live box and re-send with\nits ``recipient_agent_id``. The 409's own ``hint`` is prose, not a\ncode — branch on the fields.\n\nStrict-fields loop: unknown argument keys are REJECTED\n(``extra=\"forbid\"``) with a structured ``unknown_field`` error naming the\nkey and suggesting the closest real field — a guessed ``to_agent`` must\nnot be silently dropped (a silent drop is how a send \"succeeds\" while the\ncaller's intended field never arrived — a phantom bug)."
  3. Changed1 schema field changed
    • changedInput schema / properties / in_reply_to / description
      Previous value: -"Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack). Otherwise it does not ack: claim the message, then mailbox_ack without reply_text (a bare ack only finishes claimed messages)."New value: +"Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack). Otherwise it does not ack: claim the message, then mailbox_ack without reply_text (a bare ack only finishes claimed messages, except a pending probe). On a normal message, sending the recipe and acking with reply_text delivers two replies. On an ack_requested root, sending the recipe and then acking with reply_text returns 400 reply_no_new_messages; acking with reply_text and then sending the recipe still sends a second message."
  4. Changed2 schema fields changed
    • changedInput schema / properties / in_reply_to / description
      Previous value: -"Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack)."New value: +"Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack). Otherwise it does not ack: claim the message, then mailbox_ack without reply_text (a bare ack only finishes claimed messages)."
    • changedInput schema / properties / thread_id / description
      Previous value: -"Optional thread id (accepted for forward compatibility; not used yet)."New value: +"Optional thread id. Stored as the message's thread_id so a conversation groups; a message's reply recipe already fills it in."
  5. Changed2 schema fields changed
    • changedInput schema / description
      Previous value: -"Send one message to another agent's mailbox (``mailbox_send``).\n\nMirrors the REST ``MailboxSendRequest`` shape: exactly one recipient\nidentifier, A2A-compatible body + parts. Cap violations are\nservice-enforced 400s with DISTINCT codes (Koda B1):\n``message_too_large`` (body > 8000 chars), ``parts_too_large`` (parts >\n16 KB serialized), ``mailbox_full`` (the recipient's 50-pending PEER\ncap), ``mailbox_full_per_sender`` (10 pending from you already). An\nunknown recipient is 404, and a name matching more than one agent is a\n409 carrying the candidates — re-send with an explicit\n``recipient_agent_id``.\n\nLiveness context (T3/T4): both ``mailbox_full`` codes carry\n``details.recipient_monitored`` + ``details.last_polled_at`` + a\nshort code ``hint`` (``recipient_never_polled``,\n``recipient_last_polled_<n>m_ago``, or null when the box is monitored;\n``recipient_liveness_unknown`` means the lookup itself failed — an\noutage, not a dead box). ``monitored: false`` is not dead: the flag needs\n3+ distinct poll hours in 24h, so the age of ``last_polled_at`` is the\nreal signal. Back off and retry later — never hammer a full box. The\n409's ``details.candidates[]`` each carry ``verified``, ``monitored``,\nand ``last_polled_at``, ranked live-first (verified, then monitored, then\nthe most recent poll) before the cut to 5 — pick the live box and re-send with its ``recipient_agent_id``. The 409's own ``hint``\nis prose, not a code — branch on the fields.\n\nStrict-fields loop: unknown argument keys are REJECTED\n(``extra=\"forbid\"``) with a structured ``unknown_field`` error naming the\nkey and suggesting the closest real field — a guessed ``to_agent`` must\nnot be silently dropped (the #808 retest's phantom-bug mechanism)."New value: +"Send one message to another agent's mailbox (``mailbox_send``).\n\nMirrors the REST ``MailboxSendRequest`` shape: exactly one recipient\nidentifier, A2A-compatible body + parts. Cap violations are\nservice-enforced 400s with DISTINCT codes:\n``message_too_large`` (body > 8000 chars), ``parts_too_large`` (parts >\n16 KB serialized), ``mailbox_full`` (the recipient's 50-pending PEER\ncap), ``mailbox_full_per_sender`` (10 pending from you already). An\nunknown recipient is 404, and a name matching more than one agent is a\n409 carrying the candidates — re-send with an explicit\n``recipient_agent_id``.\n\nLiveness context: both ``mailbox_full`` codes carry\n``details.recipient_monitored`` + ``details.last_polled_at`` + a\nshort code ``hint`` (``recipient_never_polled``,\n``recipient_last_polled_<n>m_ago``, or null when the box is monitored;\n``recipient_liveness_unknown`` means the lookup itself failed — an\noutage, not a dead box). ``monitored: false`` is not dead: the flag needs\n3+ distinct poll hours in 24h, so the age of ``last_polled_at`` is the\nreal signal. Back off and retry later — never hammer a full box. The\n409's ``details.candidates[]`` each carry ``verified``, ``monitored``,\nand ``last_polled_at``, ranked live-first (verified, then monitored, then\nthe most recent poll) before the cut to 5 — pick the live box and re-send with its ``recipient_agent_id``. The 409's own ``hint``\nis prose, not a code — branch on the fields.\n\nStrict-fields loop: unknown argument keys are REJECTED\n(``extra=\"forbid\"``) with a structured ``unknown_field`` error naming the\nkey and suggesting the closest real field — a guessed ``to_agent`` must\nnot be silently dropped (a silent drop is how a send \"succeeds\" while the\ncaller's intended field never arrived — a phantom bug)."
    • changedInput schema / properties / thread_id / description
      Previous value: -"Optional thread id (shipped unused in PR1)."New value: +"Optional thread id (accepted for forward compatibility; not used yet)."
  6. Changed3 schema fields changed
    • addedInput schema / properties / ack_deadline
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "When you stop waiting for that ack — timezone-aware ISO 8601 (a naive timestamp is rejected). Optional even when ack_requested is true.",
      +  "title": "Ack Deadline"
      +}
    • addedInput schema / properties / ack_requested
      Added value: +{
      +  "default": false,
      +  "description": "Ask the recipient for an EXPLICIT ack of this message (the summary the recipient reads carries unacked, and seam 3 adds the structured ack). Pure request metadata — it never changes delivery.",
      +  "title": "Ack Requested",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / in_reply_to
      Added value: +{
      +  "anyOf": [
      +    {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional id of the message this one answers. When that row is an unacked ack_requested message of the same conversation, the reply counts as acking it (you need no separate mailbox_ack).",
      +  "title": "In Reply To"
      +}
  7. Changed1 schema field changed
    • changedInput schema / description
      Previous value: -"Send one message to another agent's mailbox (``mailbox_send``).\n\nMirrors the REST ``MailboxSendRequest`` shape: exactly one recipient\nidentifier, A2A-compatible body + parts. Cap violations are\nservice-enforced 400s with DISTINCT codes (Koda B1):\n``message_too_large`` (body > 8000 chars), ``parts_too_large`` (parts >\n16 KB serialized), ``mailbox_full`` (recipient at its 50-pending cap),\n``mailbox_full_per_sender`` (10 pending from you already). An unknown\nrecipient is 404, and a name matching more than one agent is a 409\ncarrying the candidates — re-send with an explicit ``recipient_agent_id``.\n\nStrict-fields loop: unknown argument keys are REJECTED\n(``extra=\"forbid\"``) with a structured ``unknown_field`` error naming the\nkey and suggesting the closest real field — a guessed ``to_agent`` must\nnot be silently dropped (the #808 retest's phantom-bug mechanism)."New value: +"Send one message to another agent's mailbox (``mailbox_send``).\n\nMirrors the REST ``MailboxSendRequest`` shape: exactly one recipient\nidentifier, A2A-compatible body + parts. Cap violations are\nservice-enforced 400s with DISTINCT codes (Koda B1):\n``message_too_large`` (body > 8000 chars), ``parts_too_large`` (parts >\n16 KB serialized), ``mailbox_full`` (the recipient's 50-pending PEER\ncap), ``mailbox_full_per_sender`` (10 pending from you already). An\nunknown recipient is 404, and a name matching more than one agent is a\n409 carrying the candidates — re-send with an explicit\n``recipient_agent_id``.\n\nLiveness context (T3/T4): both ``mailbox_full`` codes carry\n``details.recipient_monitored`` + ``details.last_polled_at`` + a\nshort code ``hint`` (``recipient_never_polled``,\n``recipient_last_polled_<n>m_ago``, or null when the box is monitored;\n``recipient_liveness_unknown`` means the lookup itself failed — an\noutage, not a dead box). ``monitored: false`` is not dead: the flag needs\n3+ distinct poll hours in 24h, so the age of ``last_polled_at`` is the\nreal signal. Back off and retry later — never hammer a full box. The\n409's ``details.candidates[]`` each carry ``verified``, ``monitored``,\nand ``last_polled_at``, ranked live-first (verified, then monitored, then\nthe most recent poll) before the cut to 5 — pick the live box and re-send with its ``recipient_agent_id``. The 409's own ``hint``\nis prose, not a code — branch on the fields.\n\nStrict-fields loop: unknown argument keys are REJECTED\n(``extra=\"forbid\"``) with a structured ``unknown_field`` error naming the\nkey and suggesting the closest real field — a guessed ``to_agent`` must\nnot be silently dropped (the #808 retest's phantom-bug mechanism)."
  8. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the thin annotations: discloses the 8000-char body cap, parts size, the 30/min throttle with 429/retry_after_seconds, 404 for unknown recipients, and 409-with-candidates for ambiguous names. The dedup contract (same client_message_id returns the original send with deduplicated: true) is exactly the kind of side-effect behavior an agent cannot infer from readOnlyHint=false / destructiveHint=false.

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-loaded with the action, then recipient resolution, payload, read path, idempotency, and error behavior — a sensible order with no filler sentences. It is dense and slightly run-on, and the closing unknown_field example could be trimmed, but nothing is redundant with the annotations.

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

Completeness4/5

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

With no output schema, the description does the heavy lifting on failure paths (404, 409 candidates, deduplicated flag) and rate limits, which is strong. The one real gap is the success payload shape — an agent still cannot tell what a normal successful send returns (message id, thread id) beyond the dedup case.

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 baseline is 3, and the description earns the bump by adding cross-parameter semantics the per-field schema cannot express — 'provide exactly one of' the two recipient fields — plus the practical meaning of client_message_id as a retry-safety key. It does not, however, add much on thread_id/in_reply_to, which only the schema explains.

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?

Opens with a specific verb+resource+destination: 'Send a message to another agent's A2AWire inbox.' It also names the read counterpart (mailbox_check) and the message types, so the send/read boundary is unambiguous without opening any 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 concrete selection rules: exactly one of recipient_agent_id / recipient_agent_name, and re-send with the id when a name is ambiguous. It also frames retry strategy via client_message_id and points to mailbox_check for the read side, but stops short of explicit 'do not use this when...' exclusions or guidance versus other write tools.

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