Skip to main content
Glama

Wait for a running job

wait_for_job
Read-only

Waits for a bounded period on a background job and returns its result or current running state. Repeated requests observe the same job without restarting it.

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_id": "<job_id>"
    },
    "name": "wait_for_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description does add real behavior: the wait is bounded rather than indefinite, it returns either a result or a running state, and repeated calls do not restart the job. It omits the bound duration and what a timeout response actually looks like, which are the key operational details.

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 short sentences with zero filler, and the core behavior (bounded wait, result-or-state return) is front-loaded before the idempotency note. Nothing is redundant.

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

Completeness3/5

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

No output schema exists, so the description must carry the return-value burden, and it only sketches the two possible outcomes without describing their shape. For a job-polling tool the key missing pieces are the wait bound, timeout behavior, and the origin of job_id.

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

Parameters2/5

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

There is one parameter (job_id) with 0% schema description coverage, so the description carries the full burden — yet it never says what job_id is, where it comes from, or what happens if an unknown or completed job id is passed. The single sentence about repeated requests implies stability of the identifier but does not explain it.

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 ('waits') and resource ('background job') and adds what it returns: the result or the current running state. It is clearly distinguishable from the add_/set_/remove_ editing siblings, though it does not explicitly name a related job-status sibling such as index_status or shorts_status.

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 phrase 'waits for a bounded period' and 'returns its result or current running state' implies the use case: polling a background job you already started. However, it never states when NOT to use it, how it differs from a status-check tool, or what to do if the job is still running when the wait expires.

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.