Skip to main content
Glama

Check a generation task

get_task
Read-onlyIdempotent

Check the status of an image, video, or music task by ID, waiting up to the specified seconds for queued or in-progress work to finish and return result URLs or a failure reason.

Instructions

Read the state of an image, video or music task by its id (img_…, vid_… or msc_…): queued, in_progress, completed with the result URLs, or failed with the reason. Waits up to wait_seconds for it to finish. Free to call. A task belongs to the account that started it and can be read for at least 30 days.

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>"
    },
    "name": "get_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe task id a generate tool returned.
wait_secondsNoHow long to wait for the result before returning, in seconds (0 to 45, default 20). An unfinished task is returned with its id.

Output Schema

NameRequiredDescriptionDefault
idYesTask id: img_… (image), vid_… (video) or msc_… (music).
kindYes
urlsYesResult files once completed: the images, the video, or the audio of each track.
errorYes
modelYes
statusYesqueued, in_progress, completed or failed. Anything else is a task that is not finished.
tracksNoMusic only: one entry for each track.
stalledYestrue when the task has gone longer than expected without finishing.
archivedYestrue: every URL in `urls` is Kunavo's own copy and does not expire. false: a file could not be archived and its URL is the model provider's temporary one. null until completed.
next_stepYesWhat to do with this result.
created_atYes
resolutionNoVideo only.
completed_atYes
pollable_untilYesThe task can be read with get_task at least until then.
idempotency_keyNoThe key this task was started under, in the answer of the tool that started it (get_task does not know it). Calling that tool again with it and the same arguments returns this task.
duration_secondsNoVideo only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so the bar is lower; the description still adds real context beyond them — the possible states and their payloads (result URLs on completion, reason on failure), that unfinished tasks return their id, that calls are free, per-account ownership, and a ~30-day retention window. Return-value detail is partly redundant with the output schema, keeping it 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.

Conciseness5/5

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

Three tight sentences, front-loaded with what it reads and the id format, then the outcome states, then the wait semantics and cost/retention constraints. Every clause carries information; nothing is padding.

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?

With an output schema present the description need not explain the response shape, yet it still summarizes the state outcomes. For a two-parameter read-only lookup with 100% schema coverage, an agent has everything needed to call it correctly and interpret a partial result.

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; the description nevertheless adds the id prefix conventions and frames wait_seconds as a polling budget that may exhaust and return an unfinished task. That is meaningful enrichment beyond the schema's 'How long to wait for the result'.

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 and resource ('Read the state of an image, video or music task') and pins the input shape with concrete id prefixes (img_…, vid_…, msc_…). An agent can immediately distinguish this polling/status tool from the generate_* siblings that create the tasks.

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?

Usage is clearly implied and partly explicit: the id is the one 'a generate tool returned', and the wait behavior tells the agent this can be used as a blocking poll rather than a bare status check. It lacks an explicit statement of when not to call it (e.g. after a terminal state) or a named alternative, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.