Skip to main content
Glama

get_generation

Retrieve a generation record by its UUID to get finished image URLs and processing details. Use it to poll results and verify whether the generation succeeded or failed by checking the processing state.

Instructions

Fetch a generation by UUID (GET /api/gens/{uuid}/).

Args:
    uuid: The UUID returned by ``generate``.

Returns:
    The full generation record. If terminal, ``image_urls[]`` holds the
    finished outputs and ``processing_result.slots[]`` the per-slot detail.
    NOTE: a generation that failed server-side is a SUCCESSFUL tool call
    returning ``processing_state: "failed"`` — always check the state,
    never infer success from the absence of a tool error.
    Hosted: a key obtained mid-session may be passed as
    ``_meta["maginary/api_key"]``.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It excellently does so by explaining terminal vs. non-terminal states, the structure of image_urls and processing_result.slots, and the critical edge case that a server-side failure returns a successful tool call with processing_state: 'failed'. It also documents an optional hosted API key meta parameter.

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 well-structured with clear sections (Fetch, Args, Returns, NOTE, Hosted) and every sentence adds value. It front-loads the core purpose and endpoint, then provides necessary behavioral caveats without 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?

The tool is simple (one parameter, no nesting), and while an output schema exists, the description still enriches understanding of return semantics and failure modes. It covers parameter origin, expected result shape, critical state-checking guidance, and auth metadata—everything an agent needs to invoke this tool correctly in context.

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 description coverage is 0%, so the description must compensate. It does by explaining that uuid is 'The UUID returned by generate', giving the agent the provenance and expected value of the only parameter. It also mentions the optional _meta key for hosted sessions, adding useful context beyond the bare schema type.

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 starts with a specific verb and resource: 'Fetch a generation by UUID' and even includes the exact API endpoint. This clearly distinguishes it from siblings like 'generate' (which creates) and 'wait_for_generation' (which waits), and the UUID-based scope makes its role unambiguous.

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?

The description provides clear context by explaining that the uuid comes from the 'generate' call, which tells the agent when to use this tool. It also advises checking processing_state rather than assuming success. However, it does not explicitly name alternatives or state when not to use this tool vs. siblings like wait_for_generation.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maginaryai/maginary-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server