Skip to main content
Glama

Get run status

get_run_status
Read-onlyIdempotent

Check a submitted run. Pass wait:true to block up to 45 seconds, which usually returns a finished image in one call. Always poll before giving a user an output URL. Video runs keep going after the scenes are made — rendering the MP4 takes a few more minutes, so keep polling until status is completed and tell the user it is rendering rather than handing over the watch_url as the finished thing. A finished file is shown to the user by the inReels viewer; never render a stand-in image or video (no AsyncImage, image query or stock photo).

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": {
      "run_id": "<run_id>"
    },
    "name": "get_run_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNo
run_idYes

Output Schema

NameRequiredDescriptionDefault
kindNoimage, video, speech or sound.
errorNoCaller-safe failure message, or null.
modelNoThe model that produced the output.
phaseNo
titleNo
wordsNoSpeech: where each word lands, in seconds.
noticeNoSomething the caller should pass on, such as a refund or a failed output check.
run_idYesThe run this is about.
statusYesOnly `completed` means there is a finished file.
loglineNo
progressNoCapability runs: 0-100.
video_idNo
asset_urlNoA permanent address for the same file that never expires. Use this one in anything you write down or show — a document, an <img>, a markdown image — and output_url when you are fetching the bytes now.
new_priceNo
watch_urlNoCapability runs: the share page a person opens. Appears before the MP4 exists.
output_urlNoThe finished file, signed and good for 24 hours. Null until the run completes.
credits_quotedNoWhat the run was priced at.
credits_chargedNoWhat was actually taken. 0 on a failed run.
duration_secondsNoSpeech and sound: the length produced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / asset_url
      Added value: +{
      +  "description": "A permanent address for the same file that never expires. Use this one in anything you write down or show — a document, an <img>, a markdown image — and output_url when you are fetching the bytes now.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "credits_charged": {
      +      "description": "What was actually taken. 0 on a failed run.",
      +      "type": "number"
      +    },
      +    "credits_quoted": {
      +      "description": "What the run was priced at.",
      +      "type": "number"
      +    },
      +    "duration_seconds": {
      +      "description": "Speech and sound: the length produced.",
      +      "type": "number"
      +    },
      +    "error": {
      +      "description": "Caller-safe failure message, or null.",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "description": "image, video, speech or sound.",
      +      "type": "string"
      +    },
      +    "logline": {
      +      "type": "string"
      +    },
      +    "model": {
      +      "description": "The model that produced the output.",
      +      "type": "string"
      +    },
      +    "new_price": {
      +      "type": "number"
      +    },
      +    "notice": {
      +      "description": "Something the caller should pass on, such as a refund or a failed output check.",
      +      "type": "string"
      +    },
      +    "output_url": {
      +      "description": "The finished file, signed and good for 24 hours. Null until the run completes.",
      +      "type": "string"
      +    },
      +    "phase": {
      +      "enum": [
      +        "planning",
      +        "price_changed"
      +      ],
      +      "type": "string"
      +    },
      +    "progress": {
      +      "description": "Capability runs: 0-100.",
      +      "type": "number"
      +    },
      +    "run_id": {
      +      "description": "The run this is about.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Only `completed` means there is a finished file.",
      +      "enum": [
      +        "queued",
      +        "running",
      +        "completed",
      +        "failed",
      +        "cancelled"
      +      ],
      +      "type": "string"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "video_id": {
      +      "type": "string"
      +    },
      +    "watch_url": {
      +      "description": "Capability runs: the share page a person opens. Appears before the MP4 exists.",
      +      "type": "string"
      +    },
      +    "words": {
      +      "description": "Speech: where each word lands, in seconds.",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "end": {
      +            "type": "number"
      +          },
      +          "start": {
      +            "type": "number"
      +          },
      +          "word": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "word",
      +          "start",
      +          "end"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "run_id",
      +    "status"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond them: wait:true blocks up to 45 seconds, video runs continue past scene creation while the MP4 renders for several minutes, and a finished file is surfaced by the inReels viewer. It also warns against substituting a stand-in image or video, which is exactly the kind of downstream consequence annotations cannot express.

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 action and the wait trick, then the video-rendering caveat, then the viewer rule — a sensible priority order with no filler sentences. The closing anti-stand-in instruction is somewhat tangential to a status-check tool and lengthens the block, keeping it just below 5.

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

Completeness4/5

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

An output schema exists, so return values (including watch_url, referenced here) need not be spelled out. The description covers the polling lifecycle, the wait flag, and the video rendering tail — enough to call and interpret it correctly. Only the run_id parameter's provenance is left unaddressed.

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 must carry parameter meaning. It explains wait well (pass true to block up to 45 seconds, usually returning a finished image in one call), but run_id is never described in either the schema or the description beyond its self-evident name. Partial compensation for the coverage gap warrants the baseline 3.

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?

The description opens with a specific verb+resource: 'Check a submitted run.' That clearly separates it from list_runs (which would enumerate runs) and from the create_* siblings. It stops short of naming a sibling alternative explicitly, so it lands at 4 rather than 5.

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

Usage Guidelines4/5

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

Strong procedural guidance: 'Always poll before giving a user an output URL' and 'keep polling until status is completed' tell the agent exactly when and how often to call it, and the video caveat explains a case where a naive agent would stop early. It does not point to any alternative tool (e.g. refresh_asset_url for stale URLs), so it is clear context without explicit exclusions.

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