Skip to main content
Glama

orca_terminal_wait

Block until a terminal's coding agent finishes its turn, exits, or reaches idle, with a configurable timeout; use it to coordinate multiple agents without polling.

Instructions

Block until the agent in a terminal is done with its turn (default: Orca's hook state, returns within seconds of it finishing, or at once when it waits for input), up to timeoutMs (max 600000). On "working" just wait again. for exit or tui-idle waits on the terminal itself.

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": {
      "terminal": "<terminal>"
    },
    "name": "orca_terminal_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
forNodone
terminalYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose meaningful traits: it blocks, defaults to Orca's hook state returning within seconds or immediately when input is awaited, and caps at timeoutMs 600000. However it omits what happens when the timeout elapses, whether terminal-not-found is an error first, and what the call returns.

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 blocking semantics are front-loaded, which is good, but the tail fragment 'for exit or tui-idle waits on the terminal itself' is syntactically broken and confusing, wasting the space where the enum should be clearly described. Overall terse but not well structured.

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

Completeness3/5

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

For a 3-parameter blocking wait tool with no output schema and no annotations, the description covers blocking behavior and timeout but not return values, timeout failure behavior, or the meaning of the terminal identifier. It is adequate but leaves real gaps an agent would hit in practice.

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 0%, so the description should compensate and it only partly does: it explains timeoutMs (cap 600000) and the 'for' enum values (done default, exit, tui-idle waiting on the terminal itself). The required 'terminal' parameter is never explained and the 'for' clause is garbled, leaving the meaning of two of three params thin.

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 action verb ('block until') and resource ('agent in a terminal is done with its turn'), so an agent knows this is a wait/poll tool. It does not explicitly contrast itself with siblings like orca_wait or orca_agent_status, so it falls short of a 5.

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?

'On working just wait again' gives a retry hint and the tail clause hints at 'exit'/'tui-idle' modes, but there is no clear statement of when to choose this over orca_wait or orca_agent_status, and no explicit exclusions. Usage context is only implied.

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