Skip to main content
Glama

wait_thronglet

Read-onlyIdempotent

Waits for a coding-agent session to finish all running and queued turns, then returns the final turn result or error; returns session state after timeout.

Instructions

Waits until a session has no running or queued turn and returns the last turn's result: the same JSON as run_thronglet, or its error. With timeout_s elapsed returns {session_id, state, queued} instead. Idempotent: the result is stored with the 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": {
      "session_id": "<session_id>"
    },
    "name": "wait_thronglet"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeout_sNoHow long to wait in seconds; default from config (21600). Elapsed → the session state, not an error
session_idYessession_id from run_thronglet

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare safety, so the extra value here is the return behavior. The description adds two distinct outcomes: the last turn's JSON or its error, and on timeout a {session_id, state, queued} object instead. It also explains why the call is idempotent (the result is stored with the session). It doesn't say whether the wait blocks or how it behaves if the session is unknown, but the behavioral disclosure is well beyond the annotations.

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?

It is short and front-loaded, leading with the wait condition and the successful result before covering the timeout case. The trailing "Idempotent: the result is stored with the session" is mildly redundant with idempotentHint=true, but it does explain the mechanism rather than merely restate the flag.

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?

With no output schema, the description carries the return-value burden and does so for both the success and the timeout path, which covers the main complexity of a long-polling tool. Remaining gaps are minor: the length of the default wait is left to the schema, and error cases beyond the turn's own error aren't addressed.

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 100% and the schema already documents both parameters, including the timeout's default and that elapsing is not an error. The description restates the timeout outcome and confirms session_id originates from run_thronglet, which adds only slight meaning beyond the structured fields. Baseline 3 is appropriate.

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 object ("waits until a session has no running or queued turn") and states exactly what is returned: the same JSON as run_thronglet, or its error. That distinguishes it from run_thronglet, which starts a turn, but the relationship is implied by the mention of run_thronglet's payload rather than stated outright.

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 implied: calling it after a turn is in flight, and the session_id comes from run_thronglet. However, it never says when to use this versus checking run_thronglet again, versus when cancel_thronglet is appropriate, and it gives no prerequisites or failure conditions (for example, an unknown session_id).

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