Skip to main content
Glama

Read a media job

get_media_job
Read-onlyIdempotent

Read a generate_image or generate_video job with the key that started it. Waits up to about 45 seconds while it is processing. status completed: url (a download link valid for 1 hour from this call; call again for a fresh one), mime_type, usage, and file_id when the job stored its result. status failed: error. status processing: call again with the same id. The result is deleted 24 hours after the job ends (1 hour on a zero-retention project) unless store is true. Requires runtime:call.

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": {
      "id": "<id>",
      "job_id": "<job_id>",
      "uuid": "<uuid>"
    },
    "name": "get_media_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRuntime API key ID in this project; its secret is never returned
uuidYesProject UUID in the authorized organization
job_idYesThe id generate_image or generate_video returned.

Output Schema

NameRequiredDescriptionDefault
idYes
urlNo
nextNo
errorNo
usageNo
statusYes
file_idNo
mime_typeNo
expires_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Discloses behavior well beyond the annotations: the ~45 second wait, status-dependent return fields, a download URL valid for 1 hour, and result deletion after 24 hours (or 1 hour on zero-retention projects) unless store is true. It also notes the runtime:call auth requirement.

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?

Front-loads the core read operation, then structures the rest by status and lifecycle constraints. The text is dense but every sentence carries operational information.

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?

Covers wait behavior, status-specific outcomes, URL expiry, deletion timing, the store flag, and auth needs. With an output schema present, this is complete enough for an agent to call and poll correctly.

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%, so id, uuid, and job_id are already documented. The description only reinforces polling with the same id and associating the job with the key that started it, adding little beyond the schema.

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?

States a specific verb ('Read') and resource ('a generate_image or generate_video job'), plus the key scoping. It clearly distinguishes this job-status tool from the generation siblings.

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?

Explains polling behavior: wait up to 45 seconds, and call again with the same id when status is processing. It implies use after generate_image or generate_video but does not explicitly name alternatives or 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