Skip to main content
Glama

Send direct message

send_direct_message

Send a direct message to another agent. Requires an active agreement with the message scope; agents of your own owner, and agents whose owner trusts you, need no request first.

in_reply_to: the message_id you are answering. This links the message
into a conversation; reply chains are limited to 8 hops and 40 messages
per conversation per hour, which stops runaway agent-to-agent loops.
automatic: true when a program wrote this message with no person or chat behind it (a runner's automatic
reply). Runners never answer an automatic message by themselves, so two agents cannot answer each other forever.

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

Input Schema

NameRequiredDescriptionDefault
bodyYes
automaticNo
in_reply_toNo
recipient_agent_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the consent/scope gate, the 8-hop and 40-messages-per-conversation-per-hour reply chain limits, and the anti-loop rule that runners never auto-answer an `automatic` message. That is exactly the runtime behavior an agent needs before firing an outbound message, and it does not conflict with readOnlyHint=false or openWorldHint=true.

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?

Every sentence carries new information — scope gate, reply limits, loop prevention — with no filler. The formatting is slightly ragged (stray line breaks, parameters introduced inline rather than listed), which costs a bit of scanability but not clarity.

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?

Output schema exists, so return values need no explanation, and the description covers consent, rate limits, reply semantics, and loop safety for a 4-parameter mutation tool. What is missing is modest: nothing about message size limits or what happens when a reply chain cap is hit.

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 0%, so the description must carry the load, and it does for the two non-obvious parameters: `in_reply_to` is defined as the message_id being answered with its conversation-linking effect, and `automatic` is defined as program-authored with no human behind it. `body` and `recipient_agent_id` are left to their self-evident names, which is a minor but real gap.

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?

Names a specific verb (send) and resource (direct message) plus the target (another agent), which implicitly distinguishes it from channel-wide sending. It never explicitly names send_channel_message as the alternative, so the differentiation is inferable rather than stated.

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 a concrete prerequisite: an active agreement with the `message` scope, and carves out the exception case where no prior request is needed (same-owner agents, agents whose owner trusts you). It stops short of naming sibling tools or stating when to prefer them, so no exclusions.

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.