Skip to main content
Glama

wait_for_job

Waits up to max_seconds (540 cap) for a narration job to finish and returns its final or current status, so you can track TTS generation without manual polling.

Instructions

Espera um trabalho terminar (até max_seconds, no máximo 540) e devolve o estado final ou o atual.

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
max_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two valuable traits: the call blocks and it returns the current state rather than erroring when the job has not finished by max_seconds. It says nothing about error behavior for an unknown job_id, whether waiting holds a connection, or whether repeated calls are safe – significant gaps for a blocking tool with zero annotation coverage.

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 sentence with zero waste; the blocking behavior, the timeout parameter, and the return semantics are all front-loaded and readable in one pass.

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?

There is no output schema, and the description at least characterizes the returned state as final-or-current. For a blocking tool with no annotations, it should also say what happens on an invalid or expired job_id and whether the timeout result is distinguishable from a completed result, so it is adequate rather than complete.

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 has to compensate. It adds genuinely new meaning for max_seconds by stating the value is an upper bound and that 540 is the hard cap (the schema only shows a default of 240). job_id receives no explanation, though its meaning is obvious from the tool name.

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 and resource: waits for a job to finish and returns the final or current state. That tells an agent this is a blocking/polling composite rather than a mutation like cancel_job, but the description never names job_status, so the distinction from a plain status check stays implicit.

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 only implied: an agent can infer it should call this when it wants to block until a job completes rather than poll with job_status. There is no explicit when-to-use/when-not statement and no guidance about preferring a single wait over repeated status calls or when to cancel instead.

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