Skip to main content
Glama

Wait

wait

Pauses until a delegated job finishes or the timeout elapses, then returns the job; call again if it is not final.

Instructions

Wait until a job ends, at most timeout seconds. Returns the job; call again while it is not final.

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": "<job>"
    },
    "name": "wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the two most important behaviors: the call blocks up to a time limit and may return a non-final job requiring re-invocation. It does not state what happens on timeout-to-failure, whether the job identifier must already exist, or what "final" states look like, so meaningful gaps remain 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 short sentences with zero filler; the blocking constraint is stated first and the follow-up polling contract second. Every clause carries information the agent needs.

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?

An output schema exists, so "Returns the job" need not be expanded further. Still, for a blocking, retry-oriented tool with 0% parameter documentation, the description should specify the `job` identifier and what counts as a final state before the agent can call it confidently.

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?

Schema description coverage is 0%, so the description must supply all parameter meaning. It partially explains `timeout` as a cap on blocking duration, but says nothing about `job` — whether it is a job id, name, or handle, or what form it takes. Half the parameters remain semantically undocumented.

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 verb and resource ("wait until a job ends") plus a bounded scope ("at most `timeout` seconds"), so the agent knows this is a blocking wait rather than a query. It does not differentiate itself from plausible siblings like `watch`, `status`, or `result`, which is the only thing keeping it off a 5.

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?

"Call again while it is not final" gives an implicit usage pattern: this is a polling/long-poll primitive, not a one-shot query. However, there is no explicit when-to-use-this-instead-of guidance relative to siblings such as `watch` or `status`, so the agent must infer the distinction.

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