Skip to main content
Glama

await_command_result

Waits for an existing command review or job result by pending_id, observing up to 90 seconds without launching another execution.

Instructions

Use to wait 0 to 90 seconds (default 50) for an existing command review or its job result, using its pending_id, not a request_id or session_id. Also observes an existing DEV send_input pending_id. PENDING cannot establish review expiry or completion; continue observing the same pending_id. It cannot discover IDs or establish complete history; use activity to find known IDs, request_status(request_id) for a non-waiting request check, or review_status(pending_id) for a non-waiting review check.

Wait for an existing Owner decision/job, without another execution.

Follow Owner review outcomes in server instructions. TIMED_OUT has launch_outcome=NOT_STARTED for commands or write_outcome=NOT_STARTED for input (no input was sent). On PENDING follow the same pending_id via review_status/await_command_result: PENDING is observer wait only. Interactive SECOND_GUI Reject retains ERROR/OwnerAuthorizationRequired with launch_outcome=NOT_STARTED; report and wait.

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": {
      "pending_id": "<pending_id>"
    },
    "name": "await_command_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
pending_idYesOpaque ID returned by a prior Owner review; required to observe the SAME request, never fabricate or resubmit. TIMED_OUT (EXPIRED/CLOSED) is terminal: REPORT_AND_WAIT; never resubmit or ask for the window again. See tool help for outcome handling.
wait_secondsNoBounded observer wait in seconds, 0 to 90; default 50. PENDING means observation is incomplete; continue the SAME pending_id with the existing status/wait tool.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.7
    • changedInput schema / properties / pending_id / description
      Previous value: -"Opaque ID returned by a prior Owner review; required to observe the SAME request, never fabricate or resubmit."New value: +"Opaque ID returned by a prior Owner review; required to observe the SAME request, never fabricate or resubmit. TIMED_OUT (EXPIRED/CLOSED) is terminal: REPORT_AND_WAIT; never resubmit or ask for the window again. See tool help for outcome handling."
    • changedInput schema / properties / wait_seconds / description
      Previous value: -"Bounded observation time in seconds, 0 to 90 (default 50); continue existing pending ID after timeout."New value: +"Bounded observer wait in seconds, 0 to 90; default 50. PENDING means observation is incomplete; continue the SAME pending_id with the existing status/wait tool."
  2. First observedv0.1.2

TDQS

A3.9/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose a lot — no new execution occurs, waits are bounded, TIMED_OUT yields launched_outcome/write_outcome NOT_STARTED, PENDING is observer-only, and EXPIRED/CLOSED is terminal. However, several outcome terms (launch_outcome, SECOND_GUI Reject, OwnerAuthorizationRequired) are stated without definition and review outcomes are deferred to 'server instructions' that the agent may not have loaded. Transparency is above average but the unexpanded vocabulary keeps it from being self-contained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core instruction is front-loaded in the first sentence, but the text is dense and repeats the same points: that PENDING requires continuing the same pending_id appears three times, and 'no input was sent' is restated. The jargon-heavy outcome sentences add length without adding clarity for an agent unfamiliar with the internal state names.

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?

An output schema exists, so return-value explanation is properly omitted, and the description still covers terminal states, timeout semantics, and continuation rules for a two-parameter observing tool. The remaining gap is that the actual Owner review outcome handling is handed off to 'server instructions' and to an interactive GUI edge case described only in unexplained shorthand.

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 100%, so both parameters are already documented; the description nonetheless adds real meaning by stressing that pending_id must be the ID from a prior Owner review and is never a request_id or session_id, and that it must never be fabricated or resubmitted. The wait bound (0-90, default 50) is repeated from the schema but tied to the PENDING continuation rule.

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?

States a specific verb and resource: wait 0-90 seconds for an existing command review or its job result keyed by pending_id. It also explicitly disclaims other ID types and other tools (activity, request_status, review_status), which helps distinguish it from siblings. The added sentence about 'observing an existing DEV send_input pending_id' muddies the scope slightly, since it makes the resource set broader than the headline verb suggests.

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?

Explicitly says when to use it (an existing pending_id to wait on) and when not to: it cannot discover IDs, so use activity to find known IDs, request_status for a non-waiting request check, and review_status for a non-waiting review check. It also directs the agent to keep observing the same pending_id on PENDING rather than retrying, which is exactly the routing guidance an agent needs.

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