Skip to main content
Glama

Get task

get_task
Read-onlyIdempotent

A generation's state ("running", "done" or "failed") and, when done, its output URLs. Pass waitSeconds (up to 20) to wait for it to finish within this call; repeat while state is "running" — do not submit the same generation again. Without taskId: the user's latest generations from any app or the website, newest first. Never spends credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoWithout taskId: how many latest tasks.
taskIdNoFrom generate_video or generate_image.
waitSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The description adds behavior beyond annotations, including "Never spends credits" and the bounded 20-second blocking wait, plus the rule against resubmitting. The annotations' readOnly, idempotent, and non-destructive hints are consistent with this. It doesn't mention authentication needs or rate limits, which keeps it below the top score.

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?

The description is dense and front-loaded: state and outputs first, then polling mechanics, then the listing mode, then the credit guarantee. No sentence is filler, and the imperative fragments ("repeat while state is 'running'") read efficiently.

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?

There is no output schema, and the description covers the essential return content (state string values and output URLs). It doesn't specify what the taskId-less listing returns, which is presumably a collection of task objects, and leaves that detail to inference.

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 67%, and the gap is mostly waitSeconds, which has no schema description; the description explains it well (up to 20 seconds, waits within the call). taskId's origin is spelled out ("From generate_video or generate_image"). limit is left to the schema, which covers it adequately.

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?

The description names a specific verb and resource: it returns a generation's state ("running", "done", "failed") and, once done, its output URLs. It also distinguishes the no-taskId mode as a newest-first listing of the user's latest generations, so an agent can tell exactly what this tool returns instead of calling generate_image or generate_video.

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?

The description gives concrete guidance for the polling workflow: set waitSeconds to wait up to 20 seconds within the same call, call the tool again while state is "running", and never resubmit the same generation. It also says what omitting taskId means, so the caller knows both modes without guessing.

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.