Skip to main content
Glama

Check job

check_job
Read-only

Return the status of a generation job. Statuses: "queued" (waiting), "in_progress" (generating), "delayed" (still running, but taking longer than expected; keep waiting, a job that cannot finish is failed and refunded automatically), "completed" (with permanent media URLs and asset IDs) or "failed" (with the error; its credits are refunded). Typical times: images 5–30 s, videos 30 s–several minutes, music 1–3 minutes. Use the full job_id from the original result. A bare eight-character hexadecimal prefix recovers a generation job only when it matches exactly one job of this account; an ambiguous or missing ID must be corrected, not polled again. Do not construct a media URL from a job ID. For generate_image with num_images, the batch job_id returns every image (jobs lists each one). For generate_html_video, pass the cloud_project_id as job_id: it reports the newest turn, with the summary, the media it generated and turnCredits, its final cost. For swap_video_characters, pass the session_id: it reports the swap’s state, version, previews, price and, once completed, videoUrl.

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

Input Schema

NameRequiredDescriptionDefault
job_idYesjob_id returned by a generation tool (or its first eight characters), a cloud_project_id or a swap session_id.
ui_refreshNoAccepted for compatibility.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
words_offsetNotranscribe: next page of words; pass nextWordsOffset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint/openWorldHint/idempotentHint/destructiveHint; the description adds genuinely new behavior — refund semantics on failure, per-medium expected durations, and the instruction to keep waiting on "delayed" because unfinishable jobs fail and refund automatically. It stops short of describing response payload shape beyond completed/failed, which keeps it off 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 purpose and status definitions, then per-tool ID rules; nearly every sentence carries unique information. It is dense and runs long, especially the parenthetical status definitions, but there is little outright filler.

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 read-only polling tool with no output schema, the description supplies everything needed: status vocabulary, expected latencies, refund behavior, ID-source rules, and what each status returns. An agent could call this correctly without inspecting any sibling.

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 baseline is 3, but the description goes beyond the schema by explaining that job_id is polymorphic (a job ID, a cloud_project_id, or a swap session_id) and how each origin changes what is reported, including turnCredits for html video and version/previews/price/videoUrl for swaps.

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+resource ("Return the status of a generation job") and immediately enumerates the status values, which makes it trivially distinguishable from generation siblings like generate_image or swap_video_characters.

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?

Gives explicit when/when-not guidance: use the full job_id from the original result, only use an eight-character prefix when it matches exactly one job, and correct an ambiguous or missing ID rather than re-polling. It also routes tool-specific ID handling (cloud_project_id for generate_html_video, session_id for swap_video_characters) and warns against constructing media URLs from job IDs.

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.