Skip to main content
Glama

Wait for Flow jobs

flow_wait
Read-only

Waits for queued jobs or still-working tasks, then returns their status, results, and file paths; call again until finished is true.

Instructions

Wait for queued jobs (default: all), or for the task_id of a call that answered still_working, then return their status, results and file paths. Comes back within about 40 s even when they are still running: 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_idsNoJob ids from a queued call, or the task_id of a call that answered still_working. Default: every queued job.
timeout_secondsNoAn MCP call returns after at most 40 s whatever this says, so call again until finished is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the genuinely important behavior that the call returns in ~40 s even if jobs are still running and must be re-polled until finished is true. It also notes the default scope is every queued job. It does not cover error/unknown-id behavior, which keeps it from a 5.

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 tight sentences with the scope default front-loaded and the polling instruction immediately after the return description. No filler, and the re-call directive sits at the end where the agent needs it.

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?

With no output schema, the description correctly carries the return-value burden by naming status, results, file paths and the finished flag. A long-poll wait tool is otherwise fully covered; only failure modes for bad or expired job_ids are unaddressed.

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 100%, so both parameters are already documented, including the 40 s MCP cap on timeout_seconds. The description restates the default-all-jobs behavior and the polling loop rather than adding syntax or edge-case meaning beyond the schema, so the baseline of 3 applies.

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 jobs') and enumerates the return payload (status, results, file paths), so the agent knows this is a blocking/polling wait rather than a status read. It never names flow_status or flow_call, so the distinction from those siblings is left to inference.

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?

Gives concrete entry conditions: use it on jobs from a queued call, or on the task_id of a call that answered still_working. That is clear when-to-use guidance, but there are no explicit exclusions or named alternatives (e.g. 'use flow_status for a one-shot check').

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