Skip to main content
Glama

message_agent

Sends text to a running or idle jcode agent: active sessions receive it as a soft interrupt (urgent skips pending tool calls), while idle sessions start a new turn.

Instructions

Send text to an agent. A running agent gets it as a soft interrupt (urgent=true skips pending tool calls); an idle agent starts a new turn with it.

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_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesjcode session id returned by spawn_agent
textYes
urgentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses that delivery is a 'soft interrupt' for running agents, that idle agents start a new turn, and that urgent=true skips pending tool calls. It stops short of covering failure behavior for an invalid or dead session id, or whether the call blocks or returns immediately.

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?

Two sentences, no filler, with the core action front-loaded and the state-dependent behavior following immediately. Every clause adds information an agent needs to call it correctly.

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 mutation tool with no annotations and no output schema, the definition covers the essential modes and the one non-obvious flag. What remains missing is error semantics and whether a response confirms delivery, which is modest given the tool's simplicity.

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 only 33% (only id is documented), and the description compensates by explaining the semantics of urgent precisely, including the side effect of skipping pending tool calls. The text parameter's role is conveyed by 'Send text', leaving only minor ambiguity about formatting or size limits.

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 opens with a concrete verb and resource, 'Send text to an agent', and immediately specifies the two delivery modes. It is clearly distinguishable from agent_output (reading output) and respond_permission (answering a prompt), though it never names those siblings explicitly.

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 running-vs-idle split implicitly tells the agent this tool works in both states, but there is no explicit 'use this when... instead of...' guidance. Nothing says when to prefer respond_permission or agent_output, so the caller must infer the boundary.

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