Skip to main content
Glama

wait_for_jobs

Waits for specified jobs or the entire queue to finish, then reports each job's status plus failure reasons and error codes.

Instructions

Wait until the named jobs (or the whole queue) finish, up to timeout_seconds (default 300, at most 900). Says each job's status, and the reason and code of any that failed.

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
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a solid job: it discloses that the call blocks, sets a default timeout of 300 seconds with a hard ceiling of 900, and that results include per-job status plus failure reason and code. The main undisclosed behavior is what happens at timeout — partial results, an error, or status 'running' — which matters for a blocking 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 waste, and the key scoping decision (named jobs vs whole queue) plus the deadline are front-loaded. 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?

For a two-parameter blocking tool with no annotations and no output schema, the description covers the essentials: what blocks, how long, what comes back. It would be complete with one more clause on timeout behavior and on whether waiting consumes a slot or is cheap to call repeatedly.

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 description coverage is 0%, so the description must explain both parameters. It does explain the timeout default (300) and maximum (900) and clarifies that job_ids is optional because omitting it waits on the whole queue. It repeats the schema's maximum rather than adding new information and says nothing about the minimum of 5, so the added value is moderate rather than rich.

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 uses a specific verb and resource ('wait until the named jobs... finish') and states the scope precisely: either the listed jobs or the entire queue. An agent immediately knows this is a blocking wait operation, not a query or a cancel. It stops short of 5 only because it doesn't explicitly contrast with a sibling like cancel_jobs, though the scope language already separates it well.

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

Usage Guidelines3/5

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

The parenthetical '(or the whole queue)' implies you call this after submitting jobs to block until completion, and the timeout bound implies a polling-avoidance use case. But there's no explicit 'use this when X, not when Y', no guidance on what to do after a timeout, and no mention of how this relates to cancel_jobs. Usage is inferable but not spelled out.

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