Skip to main content
Glama

Wait for a job

job_wait
Read-onlyIdempotent

Long-poll a job until it reaches a terminal state or the timeout elapses. Default 90s, which is what a cold-starting Blender container usually needs; up to 300s is accepted but read the parameter note first, because a long single call trades round trips for connection risk. Cheaper than a job_get loop; chain calls for longer jobs, or register a webhook (webhooks_set) and stop polling altogether. Validation results include a complete aggregate report summary plus exact job_report continuations; result retains the compatible inline sample. Inspect report.inlineComplete and coverageComplete; truncated details or skipped checks never establish full coverage.

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": {
      "jobId": "<jobId>"
    },
    "name": "job_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesDurable job ID returned when an asynchronous operation is queued.
timeoutSecondsNoSeconds to hold the connection open. 90 (default) is deliberately under the ~100s idle timeout common to HTTP proxies; values above that are allowed for direct connections but may return a transport error instead of a result. For jobs that genuinely take minutes, chain 90s calls or use webhooks_set.

Output Schema

NameRequiredDescriptionDefault
jobIdYesDurable job ID returned when an asynchronous operation is queued.
reportYes
resultYes
statusYes
licenseYes
terminalYes
waitedMsYes
artifactsYes
errorCodeYes
progressPctYes
errorMessageYes
statusMessageYes
resultRevisionIdYes
resultArtifactIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / artifacts / items / properties / license
      Added value: +{
      +  "anyOf": [
      +    {},
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / artifacts / items / properties / licenseDownloadUrl
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / artifacts / items / required
      Previous value: -[
      -  "artifactId",
      -  "kind",
      -  "bytes",
      -  "downloadUrl"
      -]New value: +[
      +  "artifactId",
      +  "kind",
      +  "bytes",
      +  "downloadUrl",
      +  "license",
      +  "licenseDownloadUrl"
      +]
    • addedOutput schema / properties / license
      Added value: +{
      +  "anyOf": [
      +    {},
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "jobId",
      -  "status",
      -  "terminal",
      -  "progressPct",
      -  "statusMessage",
      -  "errorCode",
      -  "errorMessage",
      -  "resultRevisionId",
      -  "resultArtifactIds",
      -  "artifacts",
      -  "result",
      -  "report",
      -  "waitedMs"
      -]New value: +[
      +  "jobId",
      +  "status",
      +  "terminal",
      +  "progressPct",
      +  "statusMessage",
      +  "errorCode",
      +  "errorMessage",
      +  "resultRevisionId",
      +  "license",
      +  "resultArtifactIds",
      +  "artifacts",
      +  "result",
      +  "report",
      +  "waitedMs"
      +]
  2. Changed6 schema fields changed
    • removedOutput schema / properties / errorCode / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / errorCode / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / errorMessage / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / errorMessage / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / resultRevisionId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / resultRevisionId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description adds real value beyond them: the 90s default rationale relative to proxy idle timeouts, the transport-error risk above that, and guidance to inspect report.inlineComplete and coverageComplete before trusting coverage. The closing sentences about 'compatible inline sample' and 'job_report continuations' are hard to parse without the output schema, which keeps this from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core behavior and alternatives, and every sentence carries operational information. The tail about report continuations and inline samples is dense and slightly cryptic, costing some readability.

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

Completeness5/5

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

For a two-parameter polling tool with full schema coverage, rich annotations and an output schema, the description covers timing strategy, failure modes, alternatives, and which result fields gate validity. An agent has everything needed to call it correctly and interpret the response.

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

Parameters4/5

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

Schema coverage is 100%, so both parameters are already documented, but the description adds decision-relevant meaning: why 90 is the sane default and that values above it may return a transport error instead of a result, plus a pointer to read the parameter note before raising it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Long-poll a job until it reaches a terminal state or the timeout elapses.' It immediately distinguishes itself from the job_get polling loop and from webhooks_set, so an agent can pick it without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance: use this instead of a job_get loop because it is cheaper, chain calls for longer jobs, or register a webhook and stop polling. The when-not is also stated via the connection-risk caveat on long single calls.

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.

Resources