Skip to main content
Glama

Wait for Flow jobs

flow_wait
Read-only

Waits up to 40 seconds for queued or active jobs to finish, returning status, file paths, and per-stage timings. Call again until finished is true.

Instructions

Wait up to 40s for queued/active jobs to finish, returning status, file paths, and per-stage timings. Call again until finished is true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "flow_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsNoSpecific job IDs to wait on (default: all jobs).
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior: a bounded 40s wait, the 'finished' completion flag, and what the response contains (file paths, per-stage timings). It does not say what happens if the wait expires with jobs still running, which is the main behavioral unknown for a polling tool.

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 sentences, zero filler, with the time bound and return payload front-loaded and the polling instruction second. Nothing could be removed without losing information.

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?

No output schema exists, and the description compensates by naming the return fields. All parameters are optional and it conveys the default 'all jobs' scope; only the expiry/timeout behavior is left unstated.

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 50%: job_ids is documented, timeout_seconds is not, and the description only restates the 40s ceiling rather than explaining that timeout_seconds is adjustable down to 1s. Baseline 3 applies since the schema carries the type and bounds.

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... for queued/active jobs to finish') plus the result shape (status, file paths, per-stage timings). It distinguishes itself from a plain status check by the waiting behavior, though it never names flow_status as the non-blocking alternative.

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?

Explicitly tells the agent to 'Call again until finished is true', which is the operative usage pattern for a polling tool. It lacks an explicit when-not or a pointer to flow_status for a one-shot check, keeping it short of a 5.

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