Skip to main content
Glama

send_message

Deliver a follow-up prompt to an existing agent session to continue a delegated coding task; optionally interrupt or background the turn.

Instructions

Sends the next message into an earlier session (session_id from run_thronglet) and returns the same JSON as run_thronglet. A message to a session whose turn is still running waits for that turn to end: turns on one session never overlap. With background: true the call returns {session_id, state, queued} as soon as the turn runs; collect the result with wait_thronglet. steer: true interrupts the running turn and delivers this message next; queued messages follow it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
steerNoInterrupt the running turn (session/cancel) and run this message as the very next turn, ahead of queued messages. The in-flight tool call is aborted; a half-applied edit may remain.
promptYesNext message for the agent
schemaNoJSON Schema (draft-07 or 2020-12) for structured output: the agent submits a matching result, returned as `structured` instead of `text`
timeout_sNoWall-clock limit for the run in seconds; default from config (21600)
backgroundNoReturn as soon as the turn is running (or queued behind the session's current turn); collect the result with wait_thronglet
session_idYessession_id from run_thronglet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations, so the description carries the full burden and does so richly: turn serialization ('turns on one session never overlap'), the waiting behavior, the background return shape {session_id, state, queued}, and steer semantics including interruption of the in-flight call. This is exactly the kind of behavioral disclosure annotations would otherwise provide.

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?

Four dense sentences, front-loaded with the core action and session_id provenance, then waiting semantics, then background, then steer. No filler; every clause carries distinct information.

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?

Comprehensive for a 6-param mutation tool with no output schema: it covers return shape, concurrency, background and steer flows. It does not mention timeout_s behavior or the structured-output schema param, both of which are documented in the schema but the description stays silent on their runtime effect.

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 100%, so the baseline is 3, but the description adds non-obvious semantics: background returns early and needs wait_thronglet, and steer interrupts the running turn and jumps ahead of queued messages. That sequencing relationship between steer and queued messages is not derivable from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (sends) and resource (next message into an earlier session), and ties the session_id directly to the sibling run_thronglet. An agent can tell this apart from cancel/wait/list siblings immediately.

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?

Clearly positions this as the continuation mechanism after run_thronglet and routes to wait_thronglet for background collection. Does not explicitly say when-not-to-use, but the alternative and its trigger conditions are named.

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