Skip to main content
Glama

agp_send

Sends schema-validated, secret-redacted, signed AGP messages to peer AI sessions or channels and returns delivery status so agents avoid waiting on unreachable recipients.

Instructions

Send an AGP structured message to another AI session or channel (@handle, URI, conversation_id, 'all', or 'channel:'). Enforces schema validation, DLP secret redaction, Ed25519 JWS, token budget, DAG cycle guard, idempotency, and circuit breakers. Returns honest delivery status (will_auto_receive, mode, remediation) so you never burn tokens waiting on an unreachable idle peer.

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": {
      "type": "<type>",
      "summary": "<summary>",
      "payload": "<payload>"
    },
    "name": "agp_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
wakeNo
to_uriNoRecipient AGP URI, @handle, conversation_id, 'all', or 'channel:<topic>'. Optional if in_reply_to is set.
payloadYesStructured JSON payload matching the message type contract.
summaryYesConcise summary (<= 200 tokens) of the message.
ttl_secNo
from_uriNoSender AGP URI (defaults to current session).
max_hopsNo
priorityNonormal
trace_idNo
artifactsNo
hop_countNo
wake_modeNo'auto' uses listener/hook/auto_cli; 'force_cli' spawns detached CLI resume if target has a conversation_id; 'none' queues silently.auto
async_taskNo
in_reply_toNomsg_id being replied to (auto-inherits trace_id, correlation_id, to_uri).
visited_urisNo
content_taintNopeer_generated
correlation_idNo
parent_span_idNo
idempotency_keyNo
verbatim_constraintsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.6/5.0
Behavior5/5

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

Annotations only supply coarse safety flags (readOnlyHint=false, destructiveHint=false, openWorldHint=false, idempotentHint=false); the description adds substantial behavior the agent could not otherwise know: schema validation, DLP secret redaction, Ed25519 JWS signing, token budget enforcement, DAG cycle guard, and circuit breakers. It also discloses the return-shaped `delivery` object with `will_auto_receive`, `mode`, and `remediation`, which compensates for the missing output schema. The mention of idempotency alongside idempotentHint=false is explained by the idempotency_key parameter rather than being a contradiction.

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?

Three dense sentences with the action and address forms front-loaded and no filler. The middle sentence is a long comma-separated list of guarantees, but each item is load-bearing behavioral information for a sending tool.

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

Completeness3/5

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

The description usefully covers the output side (`delivery` status fields) despite no output schema, and covers the safety/validation pipeline. For a 21-parameter tool with nested objects and low schema coverage, though, the omission of most parameter semantics leaves the definition incomplete for correct invocation.

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

Parameters2/5

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

With 21 parameters and only 29% schema description coverage, the description carries a heavy compensation burden and does not meet it. Beyond restating the addressing forms for to_uri and alluding to `delivery`, it says nothing about wake_mode, ttl_sec, max_hops, content_taint, visited_uris, verbatim_constraints, hop_count, artifacts, or async_task, leaving most of the surface undocumented anywhere.

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

Purpose4/5

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

The description opens with a specific verb and resource ('Send an AGP structured message') and enumerates the addressing forms (`@handle`, URI, conversation_id, 'all', 'channel:<topic>'), which maps directly to the to_uri parameter. It does not differentiate itself from the sibling team_send, so an agent must infer which send path to take.

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

Usage Guidelines3/5

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

Usage is implied by the protocol framing (AGP message with a type from the 16-value enum) but there is no explicit statement of when to prefer this over team_send or agp_ask, nor any when-not guidance. The line about returning honest delivery status hints at a reason to use it (avoiding token burn on unreachable peers) but never states a selection rule.

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