Skip to main content
Glama

x402 Crediting Swarm

agentmail_send

Dispatches an inter-agent message or threat alert over the AgentMail rail.

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": {
      "to": "<to>",
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "agentmail_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient agent ID or address
bodyYesMessage body
subjectYesSubject line
priorityNoMessage delivery priority tier (low, normal, high, urgent)

Output Schema

NameRequiredDescriptionDefault
idYesUnique dispatched AgentMail message ID
toYesRecipient agent ID or address
bodyNoMessage body text
fromYesSender AgentMail address
subjectYesMessage subject line
priorityNoAssigned delivery priority tier
thread_idYesConversation thread identifier
timestampYesISO-8601 dispatch timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false. The description adds nothing beyond restating that something is sent: it never warns that the call is non-idempotent (repeated sends create duplicate messages), says nothing about delivery guarantees, authentication, or rate limits, and does not clarify how a "threat alert" differs behaviorally from a normal message.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity is closer to under-specification than to disciplined compression.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but for a non-idempotent send tool the description leaves out the behavior an agent most needs: duplicate-send risk, delivery expectations, and when a threat alert should be used instead of a plain message. Given the mutation semantics and zero annotation coverage of those traits, this is thin.

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

Parameters3/5

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

Schema description coverage is 100%, so all four parameters including the priority enum are already documented in the schema; the baseline of 3 applies. The description adds no extra meaning about recipient format, subject conventions, or how priority affects delivery.

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?

"Dispatches an inter-agent message or threat alert over the AgentMail rail" gives a specific verb (dispatches) and a specific resource (inter-agent message / threat alert), which is enough to separate it from agentmail_inbox or swarm_health. It stops short of naming or contrasting a sibling, so it lands at 4 rather than 5.

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?

The phrase "inter-agent message or threat alert" hints at two usage contexts, but there is no explicit when-to-use, no when-not-to-use, and no pointer to an alternative channel or sibling tool. Guidance is only implied.

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.