Skip to main content
Glama
dofunc
by dofunc

prompt

Sends a task to an idle agent session, returns any pending approval or question, reopens idle-closed sessions, and blocks until the turn finishes or needs input.

Instructions

Send a task to an IDLE session. In ASKING or QUESTIONING it returns the pending approval or question instead. A session closed for idleness is reopened first. Blocks until the turn is done, needs an approval or asks a question; the server sets no time limit. If your client times out, the turn keeps running and the connection stays: call status for the state and output for the reply instead of sending the task again. Returns "approval_needed" with an approval to answer via approve / allow / reject, or "question_needed" with a question to answer via answer.

Input Schema

NameRequiredDescriptionDefault
textYes
waitNoWait for the result (default true). false returns right after sending.
sessionYesSession id returned by open

Output Schema

NameRequiredDescriptionDefault
outputNo
statusYes
outcomeNo
turn_idNo
approvalNo
questionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does so: it discloses blocking semantics, that the server imposes no time limit, what happens to the turn on client timeout, and the connection staying alive. It also names the two terminal return states ("approval_needed", "question_needed") and the tools that resolve them.

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?

Front-loaded with the primary action and the exception states, and the timeout guidance is placed where it prevents a costly mistake. Slight redundancy in the closing sentence, which restates the approval/question return values already introduced in sentence two and partly covered by the output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a blocking, state-dependent tool with no annotations, this covers preconditions, failure mode, recovery path, and return states. An output schema exists, so the description needn't detail payload shape, and the named return markers are a helpful addition rather than a gap.

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 67% — wait is documented in the schema and session points at open, but text has no description anywhere. The description implies the task content and that session is a live IDLE session, yet adds no format, size, or content guidance for text beyond what the schema already implies. Baseline 3 is appropriate at this coverage level.

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 and resource ("Send a task to an IDLE session") and immediately distinguishes behavior from the approval/question path and from the sibling tools status/output/approve/answer. An agent can tell what this does versus open, status, and output without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit preconditions (session must be IDLE; ASKING/QUESTIONING returns the pending approval instead; idly-closed sessions are reopened first) plus an explicit anti-pattern: on client timeout, do not resend — call status and output instead. Alternatives are named by name.

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