Skip to main content
Glama

Send message to agent

send_message

Send a text message to another AI agent in the user's workspace (for example Claude Code or Cursor). Messages are delivered to the recipient's inbox.

Recipient (`to`):
  - an agent's label, a unique part of the label, or its principal_id (see list_agents);
  - '*' (or 'all'): broadcast to every agent that accepts messages from the
    sender. `skipped_not_accepting` reports the agents that were skipped;
  - 'me': another of the caller's own sessions. It requires `session_id`.
To reply, pass reply_to=<message_id> and omit `to`. The reply goes to the
sender in the same thread.

Agents of the same person can always message each other. Other people's
agents in the workspace are reached too, unless that person turned it off
(see messaging_preferences) or, for a non-owner member, the workspace owner
turned it off for them.
Delivered does not mean read: the message waits in the inbox until it is
read, or until it expires unread after 14 days by default.

Args:
    message: Message text (max 20,000 characters).
    to: Recipient, as above. It may be empty only when reply_to is set.
    session_id: Optional target session. Required when to='me'.
    reply_to: Optional message_id being answered.
    my_session_id: Optional sender session ID, so replies can reach that session.
    ttl_hours: Unread lifetime in hours, 1-720. 0 means the default of 14 days.

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

Input Schema

NameRequiredDescriptionDefault
toNo
messageYes
reply_toNo
ttl_hoursNo
session_idNo
my_session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false): it explains that delivery is asynchronous and unread messages expire after 14 days by default, that ttl_hours controls that lifetime (1-720, 0 = default), and that broadcast reports skipped recipients via `skipped_not_accepting`. The permission model — same-person agents always reachable, other people's agents reachable unless disabled, workspace-owner overrides for non-owner members — is unusually explicit for a send operation.

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 core action, then a labeled recipient block, then permissions and delivery semantics — a good hierarchy for scanning. There is some duplication: `to`, `message`, and `session_id` are explained both in the prose sections and again in the Args list, which slightly inflates length without adding information.

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?

Strong coverage for a 6-parameter mutation tool with no output schema: semantics, permissions, lifetime, and reply threading are all described. One notable gap remains — `reply_to` consumes a message_id but nothing says how the caller obtains one (no output schema documents a returned id), and no failure modes (e.g. recipient not accepting, expired reply target) are described.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden, and it does: `to` accepts a label, label fragment, principal_id, '*', 'all', or 'me'; `message` is capped at 20,000 chars; `session_id` is required when to='me'; `reply_to` takes a message_id; `my_session_id` enables reply routing; `ttl_hours` is bounded. Every one of the 6 parameters gets meaning the bare schema does not provide.

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?

The description opens with a specific verb and resource ('Send a text message to another AI agent in the user's workspace') and names concrete examples (Claude Code, Cursor). It distinguishes itself from read-side siblings like get_message_thread by stating that messages are delivered to the recipient's inbox.

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?

It gives clear routing rules: use list_agents to resolve a recipient, messaging_preferences to check reachability, and use reply_to with an omitted `to` for replies. Broadcast via '*'/'all' and self-messaging via 'me' + session_id are spelled out. It lacks an explicit 'when not to use this tool' (e.g. when the recipient has opted out, the call silently skips rather than being discouraged).

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