Skip to main content
Glama

muse_message

Lists or sends session-message traffic to Muse sessions started outside this server, such as a TUI. Use send with a target and body to deliver input to that session's stdin.

Instructions

List or send muse session-message traffic to a Muse session this server did not start, such as a TUI. send requires target and body. A closed ingress is a normal result with error_code external_agent_ingress_closed, which happens unless that target process was started with MUSE_EXPERIMENTAL_EXTERNAL_AGENT_INGRESS or MUSE_EXPERIMENTAL_LOCAL_SESSION_MESSAGING. Does not replace muse_turn.

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": {
      "action": "<action>"
    },
    "name": "muse_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMessage text for send, written to the CLI stdin. Empty is rejected. Max 64 KiB.
actionYes
targetNoSession uuid or name. Required for send.
in_reply_toNo
display_contextNoJSON object forwarded as --display-context.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.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 burden, and it discloses a high-value behavioral trait: a closed ingress is a NORMAL result surfaced as error_code external_agent_ingress_closed, with the env-var conditions that produce it. That prevents an agent from misreading a routine rejection as a failure. It still says nothing about whether send blocks awaiting a reply, message persistence, or permission requirements.

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 compact sentences, each carrying load: scope, send prerequisites, failure semantics, sibling disclaimer. The opening clause is grammatically awkward and the parenthetical 'such as a TUI' interrupts the scope statement, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no annotations and no output schema, the definition covers the most important trap (ingress closed is normal) but leaves meaningful gaps: no description of what list yields, no meaning for in_reply_to or display_context, and no indication of whether send is synchronous. Adequate to call correctly in the happy path, incomplete around the edges.

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

Parameters3/5

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

Schema coverage is 60%: body and target are already documented in the schema, and the description only restates that send needs target and body. The action enum has no description of what 'list' returns, and in_reply_to and display_context are undocumented in both the schema and the description. Baseline 3 is appropriate given partial coverage.

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?

The description names specific verbs (list, send) and a specific resource (muse session-message traffic), and narrows scope to 'a Muse session this server did not start, such as a TUI.' It also explicitly disclaims overlap with muse_turn, which lets an agent separate it from the sibling in that role. The phrasing is slightly tangled ('List or send ... traffic to a Muse session') and leaves what 'list' enumerates unstated, costing it a point.

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 states the precondition for send (target and body required) and explains the closed-ingress outcome plus the two env vars (MUSE_EXPERIMENTAL_EXTERNAL_AGENT_INGRESS, MUSE_EXPERIMENTAL_LOCAL_SESSION_MESSAGING) that gate it, which is real when-to-use context. The 'Does not replace muse_turn' line implies the alternative for server-owned sessions without naming the selection rule outright.

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