Skip to main content
Glama

worker_wait

Blocks until a running background job finishes or the specified wait_seconds timeout elapses, so you can synchronize with delegated CLI work.

Instructions

Wait for a running background job to finish (up to wait_seconds, default 45s).

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

Input Schema

NameRequiredDescriptionDefault
job_idYesThe job_id returned by an earlier deferred call.
wait_secondsNoMax seconds to wait (default 45, max 55).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the blocking nature and default wait budget. However, it omits the critical timeout behavior: what happens if the job is still running after wait_seconds — does it return partial status, an error, or a still-running marker? It also says nothing about permissions or side effects, though this is presumably a safe read.

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?

A single front-loaded sentence that states the action and its time bound with no wasted wording. Nothing is buried or repeated.

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?

For a blocking tool with no output schema and no annotations, the definition should say what is returned when the wait succeeds or expires. It covers the input side adequately but leaves the return and timeout semantics unstated.

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 job_id and wait_seconds are fully documented in the schema, including min/max and default. The description only restates the wait_seconds default, adding no meaning beyond the structured fields; baseline 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?

The description gives a specific verb and resource ("wait for a running background job to finish") plus its scope bound (up to wait_seconds, default 45s). It does not distinguish itself from siblings like worker_status or worker_inspect, so an agent must infer why to block here instead of polling 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?

Usage is implied by "running background job" — this is the blocking option after a job is dispatched — but there is no explicit statement of when to choose it over worker_status/worker_inspect, nor when not to use it (for example, jobs that may exceed the 55s cap).

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