Skip to main content
Glama

get_generation

Read-only

Get a generation's status, and once it's done, the assets it made. Over MCP, while it runs, this waits up to 45 seconds for it to finish before answering: if it's still running, call again right away, with no pause.

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": {
      "generation_id": "<generation_id>"
    },
    "name": "get_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
generation_idYesThe generation, from create_generation.

Output Schema

NameRequiredDescriptionDefault
idYes`gen_…`.
errorYesWhy it failed.
modelYesThe model it uses, `author/model`.
usageYesWhat the provider reported using, once it has succeeded, or once a cancelled one's task has ended (none used when the provider stopped it in time).
inputsYesThe assets it was given.
outputYesWhere its files are saved.
paramsYesThe model's parameters it was given, as the model's `params` schema describes them.
promptYesThe prompt it was given, when it was given one.
statusYes`running`, `succeeded`, `failed` or `cancelled`.
outputsYesThe assets it made, once it has succeeded.
providerYesThe provider that served it, once one has.
created_atYesRFC 3339.
project_idYesThe project its assets go in.
updated_atYesRFC 3339: when its status last changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, non-destructive, and closed-world, so the safety profile is covered. The description's real contribution is disclosing the long-poll behavior — a blocking wait of up to 45 seconds and the immediate-retry instruction — which the agent cannot infer from annotations or schema. It does not describe failure, cancelled, or in-progress status shape, keeping it below 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?

Two short sentences, front-loaded with the primary outcome and followed by the operational nuance. No redundant restatement of the title or annotations; every clause carries information.

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 need no explanation and the description wisely doesn't duplicate them. Combined with annotations and full schema coverage, the definition is sufficient to invoke correctly. Minor gaps remain around non-success outcomes (cancelled, failed, expired generations), which matter for a status-polling tool.

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 the schema already documents it at 100% coverage ('The generation, from create_generation'). The description adds no meaning about the parameter 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Get') and resource ('a generation'), plus the two-phase return semantics: status while running, assets once done. That distinguishes it clearly from create_generation and cancel_generation, though no sibling is named explicitly for disambiguation.

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 polling guidance: this blocks up to 45 seconds, and if still running, call again immediately with no pause. That is actionable when-to-call context. It stops short of naming alternatives (e.g. get_asset) or saying when not to poll, so it is not a 5.

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