Skip to main content
Glama

Get generation results

get_generation
Read-only

Use this after any generate tool (generate_photos, edit_photo, generate_video, extend_video, lip_sync, recreate_reel) to get the results. It waits up to wait_seconds (at most 45) for the job to finish, then returns the photos or video with links, or how far along it is. Photos usually take 20 to 40 seconds, so one call is usually enough; videos take 1 to 3 minutes, so call again while it says processing. Never call a generate tool again to check, because that starts and charges a new job. Failures are refunded automatically, and the result says why they failed. Generation IDs don't expire. The result includes small previews of finished photos for you to look at (not with wait_seconds 0, which only checks); show the user the links.

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
wait_secondsNoHow long to wait for it to finish; 0 checks without waiting.
generation_idYesThe generation_id a generate tool returned.

Output Schema

NameRequiredDescriptionDefault
okNoPresent only on a refusal: the summary says why, and what the user can do.
itemsNo
stuckNoRunning far longer than usual, so likely stuck: stop checking.
statusNo
summaryYes
view_urlNo
error_codeNoPresent only on a refusal.
generation_idNo
influencer_idNo
credits_chargedNo
influencer_nameNo
credits_refundedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the operationally important traits: the 45-second wait ceiling, expected latencies (20-40s photos, 1-3 min videos), that failures are automatically refunded and report a reason, and that generation IDs never expire. It also notes previews are omitted when wait_seconds is 0, a non-obvious behavioral quirk.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

It is front-loaded with purpose and then layered with timing, polling, cost-protection, and display guidance, with no filler sentences. It runs as one dense block, so a little structural separation would improve scanning, but every sentence carries operational value.

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?

For a two-parameter polling tool with an output schema present, the description covers everything an agent needs: what triggers it, how long to wait, when to repeat, what failure means financially, and that the returned links should be surfaced to the user. Return-value shape is correctly left to the output schema.

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 the baseline is 3; the description still adds meaning by framing wait_seconds as a polling strategy (one call usually enough, repeat while processing) and by noting generation_id comes from a generate tool's return. It does not restate the numeric bounds the schema already declares.

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 opens with a specific verb and resource (fetching results for a generation) and immediately scopes it by naming the exact sibling tools it follows (generate_photos, edit_photo, generate_video, extend_video, lip_sync, recreate_reel). An agent can distinguish it from generate tools without opening any schema.

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?

It gives explicit when-to-use (after any generate tool), an explicit prohibition with rationale (never re-call a generate tool to check, because that starts and charges a new job), and conditional advice (one call is usually enough for photos; call again while it says processing for videos). That is a complete decision rule for polling.

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