Skip to main content
Glama

message_session

Send messages to a routine's session to join a running turn or continue a finished session, with optional file attachments.

Instructions

Send a message to a routine's session: it joins a running turn, or continues a finished session.

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": {
      "id": "<id>",
      "text": "<text>"
    },
    "name": "message_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe routine's id, such as weekly-report.
textYesThe message; may be empty with attachments.
sessionNoA session id; the latest session when left out.
attachmentsNoAbsolute paths of regular files to copy into the session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/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 does disclose the non-obvious core behavior: the message either joins an in-flight turn or resumes a finished session. However, it says nothing about side effects, permission requirements, what happens when text is empty, how attachments are handled, or what the call returns, leaving meaningful behavioral gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with the primary action and the two behavioral branches front-loaded. There is no filler, hedging, or repeated information.

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 four-parameter mutation tool with no annotations and no output schema, the description covers the central behavioral question (live turn vs completed session) but omits error conditions, attachment handling, and return expectations. The rich input schema compensates for the parameter side, but the behavioral picture is only partially complete.

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 description coverage is 100%, so all four parameters (id, text, session, attachments) are already documented, including the session default and the copy-in semantics of attachment paths. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the heavy lifting.

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 gives a specific verb and resource ('Send a message to a routine's session') and characterizes the outcome ('joins a running turn, or continues a finished session'), which helps an agent separate it from read-style siblings like read_session or list_sessions. It stops short of naming the closest alternative, answer_session_question, so the differentiation is inferred rather than explicit.

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?

Two usage contexts are implied by 'joins a running turn' versus 'continues a finished session', which tells an agent this works in both live and completed states. There is no explicit when-not guidance and no named alternative, so an agent must still infer when to prefer answer_session_question over sending a free-form message.

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