Skip to main content
Glama

Wait for / check jobs

wait_for_jobs

Wait for asynchronous image generation jobs to finish, check their status, and retrieve results; omit job IDs to monitor all running jobs.

Instructions

Check on or wait for jobs started with wait=false (or that outlasted a call's timeout). Omit job_ids to wait for everything still running.

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": "wait_for_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsNo
return_imagesNo
timeout_secondsNoSeconds to wait (default and max 50). 0 = just report current status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose the key behavioral trait: this call blocks until jobs finish or the timeout elapses, and with no job_ids it waits on all running jobs. It does not say what happens when the timeout expires (partial results? error?), whether unknown job_ids fail, or how results are delivered, leaving meaningful behavioral gaps for a blocking call.

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

Conciseness4/5

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

Two short sentences, front-loaded with the action and then the scoping condition, with no filler. The leading 'Check on or wait for jobs' largely restates the title, so the sentence's value is concentrated in the parenthetical, but nothing is wasted.

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

Completeness2/5

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

There is no output schema and no annotations, so the description is the only place an agent could learn what this returns, and it never says whether the result is statuses, outputs, or images. Combined with the undocumented return_images parameter and no timeout-expiry behavior, the definition is thin relative to the blocking, multi-job semantics it exposes.

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 only 33% (only timeout_seconds is documented), so the description must compensate. It does add real meaning for job_ids by explaining that omission means 'wait for everything still running', but it says nothing about return_images (default true), which is the parameter most likely to surprise an agent, and adds no detail on timeout semantics beyond what the schema states.

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 names a specific dual behavior ('Check on or wait for') applied to a specific resource ('jobs') and pins down which jobs it concerns ('started with wait=false (or that outlasted a call's timeout)'). An agent can immediately tell this is the async-completion tool rather than a job-creating tool, though it never explains what a returned 'job' actually contains.

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?

It gives a clear situational trigger: use it for jobs begun with wait=false or for calls that timed out before finishing, and it tells you to omit job_ids to cover everything still running. It stops short of explicit exclusions or alternatives (e.g. don't call it when the original call already returned results), so it is context-clear but not fully guidance-complete.

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