Skip to main content
Glama

Get task status

get_task
Read-only

Read a task's status to retrieve generated asset URLs on success or an error code and message on failure, and poll with backoff until completion.

Instructions

Read one task. status: waiting | generating | success | fail. On success, output contains the asset URLs; on fail, error contains a code and message. Poll with backoff (for example 5s, then 10s, then 20s) instead of a tight loop.

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

Input Schema

NameRequiredDescriptionDefault
taskIdYestaskId returned by create_task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare this a non-destructive, closed-world read. The description adds real value by mapping status values to outcomes (asset URLs on success, error code and message on fail) and warning against tight polling. It stops short of sayings whether terminal states are sticky or how long tasks are retained.

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?

Four short sentences, front-loaded with purpose, then status values, then return semantics, then polling advice. No filler.

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?

No output schema exists, and the description compensates by describing both success and failure payloads. For a single-param polling tool this is nearly complete, missing only guidance on what to do with a fail result or how long terminal states persist.

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?

Only one parameter and schema coverage is 100%, with the schema itself noting taskId comes from create_task. The description adds no format or validation detail beyond the schema, so baseline 3 applies.

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 one task") and immediately enumerates the status values it returns, so an agent knows exactly what this tool yields versus create_task.

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?

Gives concrete operational guidance: poll with exponential backoff (5s, 10s, 20s) rather than a tight loop. It does not name when to use a different sibling (e.g., recover_submission) or when to stop polling, so the guidance is clear but not exhaustive.

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