Skip to main content
Glama

wait_for_run

Read-onlyIdempotent

Wait for a run to settle (completed, failed, or needs_input) and return it with the agent's final reply. Returns wait_timed_out if it is still running when the timeout passes; call again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesA run id (trun_...).
timeout_secondsNoHow long to wait for the run to settle before returning (default 60, max 90). On wait_timed_out, call wait_for_run with the run id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
objectYes
resultNo
reusedNo
statusYes
chat_idNo
summaryNo
task_idYes
task_nameNo
created_atYes
started_atNo
completed_atNo
error_messageNo
credits_consumedNo
pending_approval_idsNo

TDQS

A4.3/5.0
Behavior5/5

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

The description adds substantial behavior beyond annotations: it discloses the terminal states, the timeout return value, and the idempotent retry pattern ('call again'). This aligns with annotations like idempotentHint=true and readOnlyHint=true without contradicting them. The retry instruction is especially valuable for an agent deciding how to handle a timeout.

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?

Two concise sentences with no filler. The main action and terminal states are front-loaded, and the timeout/retry instruction is placed immediately after. Every clause earns its place and no redundant information is included.

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?

The description is sufficient for an agent to invoke the tool correctly: it states what it waits for, what the possible settle states are, what happens on timeout, and how to retry. The output schema and annotations cover return shape and safety, so no critical context is missing. The only minor ambiguity around 'final reply' in the needs_input case is not enough to lower the score.

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?

The schema already covers both parameters fully: run_id is described as a trun_... id, and timeout_seconds has default, max, and behavior notes. The description mentions 'when the timeout passes' but adds no parameter-level meaning beyond the schema. With 100% schema description coverage, the baseline of 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 states a specific verb and resource: 'Wait for a run to settle' and returns it with the agent's final reply. It clearly enumerates the terminal conditions (completed, failed, or needs_input), which makes the operation unambiguous. It doesn't explicitly name sibling alternatives like get_run, but the waiting semantics distinguish it from simple status retrieval.

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?

The description gives clear context for when to call the tool: when you need to block until a run settles. It also provides explicit retry guidance: 'Returns wait_timed_out if it is still running when the timeout passes; call again.' It does not discuss alternatives or exclusions, but the primary usage and retry behavior are well covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4/5.0
Disambiguation4/5

The direct API tools (api_search/api_execute) are clearly distinct from the agent workflow tools. The main ambiguity is between ask_crevio and start_chat, since both initiate agent runs, though one waits and the other does not.

Naming Consistency4/5

Most tools follow a clear verb_noun pattern (list_runs, get_run, send_message, cancel_run). The api_ prefix on api_execute/api_search and the lowercase whoami are minor deviations from an otherwise consistent convention.

Tool Count5/5

14 tools is well-sized for a server that combines direct REST API access with an agent run/chat lifecycle. Each tool has a distinct role and none feel redundant or unnecessary.

Completeness5/5

The REST surface is fully covered through api_search and api_execute, and the agent lifecycle is complete: start, continue, ask, wait, list, approve, cancel, and inspect runs/chats/messages. No critical operation appears to be missing.

Resources