Skip to main content
Glama

Resume subagent

send_message

Resume an existing child agent by ID or name, preserving its history and queuing a prompt if it is mid-turn; control wait time, turn timeout, and completion notifications.

Instructions

Resume a completed agent by ID or name, preserving its full history. Blocks for at most wait_seconds (default 30 seconds, or sendMessageWaitSeconds in models.yaml); on expiry it returns status "running" with wait_expired: true and leaves the turn running. Codex resumes replay the whole thread with no prompt cache: the result includes a warning, and a resume after a long idle (default 30 minutes, codexResumeIdleSeconds in models.yaml) is refused unless allow_expensive_resume is true. timeout is the turn cap in seconds and is echoed as timeout_seconds. If the agent is still mid-turn, this queues the message (one slot) for delivery the moment the current turn ends — call list_agents/get_agent_events if you need to know when it lands. notify changes the completion ping policy for this and later turns (always, on_failure, never); needs_approval always pings. Results are capped at 4000 characters by default; set max_result_chars to override the cap.

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": {
      "agent": "<agent>",
      "prompt": "<prompt>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent ID or name
effortNoReasoning effort for this turn (Codex, Antigravity and Copilot per-turn; Claude only when the session must cold-start). OpenCode, Cursor and Vibe reject it. Defaults to the value used at spawn.
notifyNoCompletion ping policy for this and later turns: always (default), on_failure, or never. needs_approval always pings.
promptYes
timeoutNoTurn cap in seconds for this resume. Overrides the agent config. Echoed back as timeout_seconds.
wait_secondsNoHow long this call waits for the turn to settle before returning status "running". Defaults to sendMessageWaitSeconds (30s). 0 returns immediately. This does not cancel the turn.
max_result_charsNoMaximum result characters returned by this call
run_in_backgroundNo
allow_expensive_resumeNoResume a Codex agent even though it has been idle past the uncached-replay limit.
allow_agent_definition_changeNoResume an Antigravity conversation even though its custom-agent file changed since spawn.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.4.0
    • addedInput schema / properties / allow_agent_definition_change
      Added value: +{
      +  "description": "Resume an Antigravity conversation even though its custom-agent file changed since spawn.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / effort / description
      Previous value: -"Reasoning effort for this turn (Codex and Antigravity per-turn; Claude only when the session must cold-start). OpenCode and Cursor reject it. Defaults to the value used at spawn."New value: +"Reasoning effort for this turn (Codex, Antigravity and Copilot per-turn; Claude only when the session must cold-start). OpenCode, Cursor and Vibe reject it. Defaults to the value used at spawn."
    • addedInput schema / properties / max_result_chars
      Added value: +{
      +  "description": "Maximum result characters returned by this call",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / notify
      Added value: +{
      +  "description": "Completion ping policy for this and later turns: always (default), on_failure, or never. needs_approval always pings.",
      +  "enum": [
      +    "always",
      +    "on_failure",
      +    "never"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / wait_seconds
      Added value: +{
      +  "description": "How long this call waits for the turn to settle before returning status \"running\". Defaults to sendMessageWaitSeconds (30s). 0 returns immediately. This does not cancel the turn.",
      +  "maximum": 86400,
      +  "minimum": 0,
      +  "type": "number"
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior5/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 so thoroughly: blocking ceiling via wait_seconds with default 30s, the exact expiry contract (status 'running' plus wait_expired: true, turn left running), the Codex uncached-replay warning, the idle-limit refusal unless allow_expensive_resume is true, one-slot queueing, and the 4000-character result cap. This is exactly the behavioral context an agent cannot get from structured fields.

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 purpose is front-loaded and every sentence carries information, but the prose is dense and run-on with several clauses chained by em-dashes and semicolons. It could be broken into shorter units without losing content, though nothing is genuinely redundant.

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 10-parameter mutation-style tool with no annotations and no output schema, the description covers blocking, expiry, queuing, replay cost, and result truncation comprehensively. The remaining holes are the undocumented run_in_background and prompt parameters, which neither the schema nor the description explain.

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 already 80%, so the baseline is 3, but the description adds real meaning: wait_seconds' default and non-cancelling semantics, timeout being echoed as timeout_seconds, notify applying to 'this and later turns' with needs_approval always pinging, and the max_result_chars default. It leaves run_in_background entirely unexplained, which is the one notable gap.

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 states a specific verb and resource: 'Resume a completed agent by ID or name, preserving its full history,' and then clarifies the dual behavior when the agent is mid-turn (queueing). It is distinguishable from siblings like spawn_agent, though the name 'send_message' versus the resume framing creates mild friction that the first sentence has to resolve.

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?

Usage is mostly implied: resume a completed agent, and if it is mid-turn the message queues. It does route the agent to list_agents/get_agent_events when delivery timing matters, which is a useful explicit alternative, but it never states when to choose this over spawn_agent or get_agent_result for a finished agent.

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