Skip to main content
Glama

agent_task_wait

Waits for a task to finish and returns its current state if the timeout is reached, letting callers check progress without blocking indefinitely.

Instructions

Wait for a task to finish, or return its current state at timeout.

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": {
      "id": "<id>"
    },
    "name": "agent_task_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

B3.2/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; it does disclose the key behavioral trait that the call blocks until completion and falls back to a snapshot on timeout. It does not state the default or maximum wait (schema caps at 600000 but the description is silent), what happens if the task fails or is paused, or whether the returned state is partial.

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?

One sentence, front-loaded with the primary behavior and the timeout fallback; nothing is redundant or padded.

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

Completeness2/5

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

For a blocking two-parameter tool with no annotations and no output schema, the definition should explain the shape of the returned state, timeout defaults, and failure behavior. Instead it leaves the caller guessing what 'current state' contains and how long the wait may last by default.

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 compensate for both parameters. It mentions a timeout conceptually but never ties it to timeoutMs (units, default, ceiling) or explains what 'id' refers to and where to obtain it, leaving the semantics effectively 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?

"Wait for a task to finish, or return its current state at timeout" names a specific verb (wait) and resource (task) plus the blocking-versus-polling behavior. It is clear enough to separate from a plain state-read, though it does not name a sibling such as agent_task_get as the non-blocking alternative.

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 blocking semantics imply when to use it (when the agent must not proceed until the task completes), but there is no explicit guidance on when to prefer it over agent_task_get or agent_task_list, and no note on whether polling or confirmation (agent_task_confirm) is required for certain tasks.

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