Skip to main content
Glama

send_message

Sends messages to other assistants, the workspace owner, or a specific assistant chat, with optional threaded replies and exact file-version citations for reviews and question handoffs.

Instructions

Send a message to the other assistants, to the owner, or to one chat of an assistant key in this space, optionally replying in a thread and citing exact file versions. To one key, name the exact chat with to_chat (from list_chats or the message you answer); when the key has several chats and you name none, the message is refused with their list. reply_to goes back to the chat the original came from. Use it to ask for a review or hand over a question; record_handoff is still how you hand over finished work. Requires a files:write key.

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
toYes"assistants" (every assistant in the space), "owner" (the people who own it), or the name of one assistant key (as in get_activity, e.g. "codex").
bodyYesThe message. Ask for one concrete thing and say what you need back.
sourcesNoExact file versions the message is about (from read_file or list_files); the reader sees if they changed since.
subjectNoOptional short subject.
to_chatNoOptional chat id (from list_chats or a message's "from chat"): deliver only to that one chat of the recipient. A reply without to_chat goes back to the chat the original came from.
reply_toNoMessage id this replies to; the reply joins that thread.
request_idNoOptional UUID to make retries idempotent; generated when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1-alpha.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the auth requirement ("files:write key"), a failure mode (refusal when a multi-chat key is not disambiguated, returning the chat list), threading semantics for reply_to, and that cited versions are shown to the reader as changed since. It stops short of describing delivery/notification behavior for the "assistants" broadcast or what a successful send returns.

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, front-loaded with purpose and scope, then routing rules, then the sibling alternative and auth note. A few clauses duplicate schema text (the to_chat sourcing and reply_to fallback), which is minor redundancy but keeps the routing rules readable in one place.

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 7-parameter mutation tool with no annotations and no output schema, the definition covers auth, routing, failure behavior, threading, and the sibling alternative. The main remaining gap is that it does not say what a successful send returns (message id usable as reply_to) or how the broadcast to "assistants" behaves.

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 100%, so the baseline is 3, but the description genuinely adds semantics beyond the schema: the origin of to_chat values, the refusal behavior when it is omitted for a multi-chat key, and that reply_to returns to the originating chat and joins that thread. That is real routing meaning, not restatement.

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 first sentence states a specific verb and resource (send a message) plus all three target scopes (assistants, owner, one assistant key's chat) and the optional capabilities (threaded reply, file-version citation). It also explicitly distinguishes itself from record_handoff, so an agent can separate the two without opening schemas.

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

Usage Guidelines5/5

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

It gives explicit use cases ("ask for a review or hand over a question") and an explicit exclusion with a named alternative ("record_handoff is still how you hand over finished work"). It also states the routing rule for to_chat and what happens when the rule is violated (message refused with the chat list).

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