Skip to main content
Glama

Wait for jobs

wait_for_jobs
Read-only

Waits (up to timeout_seconds, at most 50) until the given jobs finish, then returns them — cheaper than polling get_jobs. Images take ~10–40 s, videos 1–5 min: call again if all_finished is false.

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": {
      "job_ids": "<job_ids>"
    },
    "name": "wait_for_jobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsYesJob ids (job_…) returned when the jobs were started.
timeout_secondsNoHow long to wait, in seconds (1–50, default 45). Call again if not all finished.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds real behavior beyond that — the hard 50-second ceiling, the retry-on-unfinished pattern, and per-media-type latency expectations. It does not spell out what a partial (timeout-expired) return contains, though the output schema carries return shape.

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, front-loaded with the action and the timeout cap, followed by cost comparison and the retry cue. No redundant restatement of the name or title.

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?

For a low-complexity wait/poll tool with full schema coverage, an output schema, and safety annotations, the description supplies everything an agent needs: cost tradeoff versus polling, latency expectations, and the retry condition. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so baseline is 3, and the description goes beyond by framing timeout_seconds as a wait budget whose expiry means 'all_finished is false' and a repeat call is needed. That temporal meaning of the parameter is not obvious from the schema alone. The job_ids semantics are left entirely to the schema, which already documents the job_… pattern.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Waits ... until the given jobs finish, then returns them') and explicitly contrasts itself with the sibling polling tool get_jobs. An agent can distinguish it from get_jobs without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Directs the agent to prefer this over polling get_jobs ('cheaper than polling'), and gives an explicit retry rule ('call again if all_finished is false') plus expected durations by job type (images ~10–40 s, videos 1–5 min) so the agent can plan the loop.

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.