Skip to main content
Glama

Get Job

get_job
Read-only

Poll a render job: a video (jobId == shotId) or a music track (jobId == trackId from generate_music). Returns status + outputUrl when done. Video renders take time: fast models (LTX, ws-pika) ~30s; Kling 3.0 / Veo 3.1 / Seedance 60–120s; up to ~3min under load; ws-kling-4.0 (Kling 4.0) takes about 10 minutes. running past 60s is NORMAL — keep polling every ~5–8s until status is succeeded or failed. Do not conclude a job is hung before ~3–4 minutes; a video the provider no longer reports as running is marked failed by the watchdog after ~15–25 minutes, while one still rendering keeps going; music gives up at 30 minutes. Keep polling until a terminal status rather than abandoning a paid render. succeeded always carries an outputUrl. A running result with code "insufficient_credits" is a FINISHED render held until it is paid for, for 24 hours (1 hour for providers whose files expire): stop polling, call buy_credits (or tell the user to add credits), then call get_job once more to release it. A running result with code "billing_unavailable" is a FINISHED render whose charge failed on our side (it is never charged twice; the balance is not the problem): keep polling get_job every ~30–60 s; once charging works it is usually released. Do NOT call buy_credits and do not resubmit. Either hold can end in failed (uncharged; render again): a billing hold after 72 h, either hold after 1 h on Replicate- or HeyGen-routed models (their outputs expire), or when the output is gone by release time.

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

Input Schema

NameRequiredDescriptionDefault
jobIdYesjobId from generate_video or render_shot (a shot id), or trackId from generate_music.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / jobId / description
      Added value: +"jobId from generate_video or render_shot (a shot id), or trackId from generate_music."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint/destructiveHint=false; the description adds everything an agent actually needs beyond that — per-model render durations, watchdog timing (~15–25 min), music timeout (30 min), hold windows (24h / 1h / 72h), and the non-obvious fact that a `running` status can mean a finished-but-unpaid render. Nothing here contradicts the read-only annotation; polling is a read.

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?

The opening sentence front-loads purpose and return shape, and nearly every sentence carries operational consequence (timings, stop conditions, credit branches). It is a dense wall of text with the most consequential instruction — the insufficient_credits vs. billing_unavailable split — buried mid-paragraph rather than surfaced, which costs it a point despite the lack of 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?

There is no output schema, so the description must carry the return contract, and it does ('Returns status + outputUrl when done', 'succeeded always carries an outputUrl', terminal statuses succeeded/failed). For a single-parameter polling tool with real credit and timeout edge cases, an agent has everything needed to call it correctly and to interpret every result state.

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 100% and the schema already says jobId comes from generate_video/render_shot (a shot id) or trackId from generate_music, which the description largely restates. It adds no format, validation, or lookup detail beyond that, so the schema is doing the heavy lifting.

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 ('Poll a render job') and immediately disambiguates the two job families the single jobId parameter can refer to (video shotId vs. music trackId from generate_music). It also states what the tool returns ('status + outputUrl when done'), so an agent knows the contract without opening anything else.

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-to-use and when-not-to-act guidance: keep polling every ~5–8s, don't conclude a job is hung before ~3–4 minutes, keep polling to a terminal status rather than abandoning a paid render, and stop polling on an insufficient_credits hold. It even names the sibling to call in that branch (buy_credits) and explicitly forbids it in the billing_unavailable branch, with a separate cadence (~30–60s) for that case.

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.