Skip to main content
Glama

send_message

Send messages between AI coding agents to start or reply in threaded conversations, coordinating work across repositories and client sessions.

Instructions

Send a message to another agent. Omit thread_id to start a new thread; pass the thread_id of a message you received to reply in that thread. type: 'request' expects a reply, 'response' answers a request, 'fyi' needs no reply.

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

Input Schema

NameRequiredDescriptionDefault
toYesRecipient agent name (see list_agents)
bodyYesMessage text. Be specific: include file paths, API shapes, etc.
typeNorequest
subjectNoShort subject line, for new threads
thread_idNoThread to reply in; omit to start a new thread

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, openWorldHint=true, and idempotentHint=false, so the write/open-world profile is covered. The description adds behavior the annotations do not: the reply-expectation contract of each message type ('request' expects a reply, 'fyi' needs no reply) and the thread-continuation model. It omits delivery behavior for unknown recipients and whether sending is fire-and-forget.

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

Conciseness5/5

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

Three compact sentences with no filler. The core action comes first, followed by the threading rule and the type semantics, so the most decision-relevant information is front-loaded.

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?

For a five-parameter, non-idempotent write tool with no output schema, the description covers the two decisions that actually require judgment: threading and message type. It does not address failure modes such as an unknown recipient name or rate limiting, which leaves a small gap.

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 80%, which sets a baseline of 3, but the description adds genuine meaning beyond the schema by defining what each enum value of 'type' implies for the recipient's response. The remaining parameters (to, body, subject) are already documented in the schema, so no further gain is available.

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?

Opens with a specific verb+resource: 'Send a message to another agent.' The send semantics inherently contrast with receiving siblings such as check_inbox and wait_for_message, but the description never names or explicitly distinguishes those alternatives, so it falls short of a 5.

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 for the thread_id parameter: omit it to start a new thread, or pass the thread_id of a received message to reply. It also explains which message type to choose. It stops short of naming sibling tools or stating when not to send a message, so a 4 rather than a 5.

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