Skip to main content
Glama

message_chat

Sends an agent's message to a Claude Code chat and returns its reply, so open chats answer live on screen and closed chats wake in their own folder, model and permissions.

Instructions

Send the owner's words to one of their Claude Code chats and return its answer. A chat open in the Claude app gets it as a message from the calling agent and answers in place, live on the owner's screen. A closed chat wakes up with its own folder, model and permissions: live in the Claude app when the relay chat is open there (docs/relay.md), otherwise in the background. show_in_app=true also switches the app to that chat. chat is its title (or words from it) or its id. Pass only words the owner typed.

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": {
      "chat": "<chat>",
      "text": "<text>"
    },
    "name": "message_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
textYes
show_in_appNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/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 behavioral burden and does substantial work: it discloses that the call is blocking (message plus answer), that an open chat answers in place on the owner's screen, that a closed chat relaunches with its own folder/model/permissions, and that the relay determines foreground vs background. It omits failure behavior, timeouts on the answer, and any rate or permission constraints.

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?

The core purpose is front-loaded in the first sentence and every subsequent sentence adds behavioral detail rather than restating the name. The middle conditionals about relay versus background are dense and nested, costing some readability, but no sentence is filler.

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 three-parameter tool with no annotations, the description covers purpose, the two lifecycle states of the target chat, UI side effects, and the meaning of every parameter, and a return value is covered by the existing output schema. Remaining gaps are error handling, blocking duration, and what the owner sees of the caller's identity.

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 description coverage is 0%, so the description must compensate, and it does for all three parameters: `chat` is its title, words from the title, or its id; `show_in_app=true` is stated to switch the app to that chat; and `text` is constrained to "only words the owner typed." It stops short of explaining how ambiguous or partial title matches are resolved.

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?

"Send the owner's words to one of their Claude Code chats and return its answer" gives a specific verb, resource, and a distinguishing synchronous send-and-answer semantic that separates it from read/list siblings. It never names an alternative tool, so routing relies on the agent inferring the contrast with chat_status or read_chat.

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 description explains the two execution modes (open chat answers live; closed chat wakes up with its own folder, model and permissions), which implies when a call will be interactive versus background. It gives no explicit when-to-use or when-not-to-use guidance relative to siblings such as read_chat or codex_message_thread, and no exclusions or preconditions for the owner's presence.

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