Skip to main content
Glama

generate

Destructive

Submit one billable image, video, or audio generation with an explicit idempotencyKey after checking get_model and estimate_cost. Pass optional waitMs (0–25000, e.g. 20000 for fast images) to wait in the same call and return the inline preview card + signed download URLs immediately when complete. Never submit a second key to resume or recover an existing job.

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": {
      "modelId": "<modelId>",
      "operation": "<operation>",
      "input": "<input>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesCanonical model input object ({ prompt, resolution, duration, aspectRatio, firstFrame, references, ... }).
waitMsNoOptional synchronous wait window in ms (0–25000). Recommended 20000 for image models so fast results return in one call.
billingNoBilling mode ("managed" or "byok").
modelIdYesExact model ID.
routeIdNoOptional exact regional route ID.
routingNoOptional routing constraints ({ providerIds, endpointRegions, fallback, preference }).
metadataNoOptional private project/tags metadata ({ project?, tags? }).
operationYesExact generation operation.
webhookUrlNoOptional public HTTPS webhook callback URL signed with Ed25519 (verifiable via /.well-known/webhook-jwks.json).
maxCostMicrosNoMaximum managed spend ceiling in integer micro-USD.
webhookEventsNoOptional lifecycle events for webhookUrl (defaults to generation.completed, generation.failed, generation.cancelled).
idempotencyKeyYesStable caller-generated unique key (1–200 chars). Reuse only for the identical request.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety profile is partially covered; the description adds genuinely new context by flagging the call as 'billable' and by explaining what waitMs buys (inline preview card plus signed download URLs returned in the same call). The idempotency disclosure is valuable given that idempotentHint is false — it tells the agent deduplication is caller-supplied rather than server-side. It does not cover auth requirements or what an async (waitMs=0) call returns, which keeps it below a 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?

Three sentences, all front-loaded with the highest-value constraint first (single billable submission with explicit key), then the optional latency optimization, then the prohibition. No filler or restated title text; each clause carries distinct operational 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?

For a 12-parameter, nested-object, no-output-schema tool, the description covers the two highest-stakes behaviors — billing and idempotency — plus the realistic return shape when waitMs is used. The main remaining gap is the async path: an agent submitting with waitMs=0 is not told what comes back (presumably a job identifier) or how to poll it, and there is no output schema to fall back on.

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 100%, so the baseline would be 3 regardless; the description goes slightly beyond by framing idempotencyKey as mandatory and stating the reuse rule ('Reuse only for the identical request' reinforced by 'Never submit a second key'). Its waitMs example ('20000 for fast images') largely restates what the schema already says, so the added value is partly redundant.

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 — 'Submit one billable image, video, or audio generation' — and scopes it to exactly one generation per call, which is precise enough to separate it from job listing, cancellation, and asset tools. It also explicitly ties itself to the prerequisite siblings get_model and estimate_cost so the agent knows where this tool sits in the workflow.

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 names the upstream steps ('after checking get_model and estimate_cost') and gives an explicit when-not rule: 'Never submit a second key to resume or recover an existing job,' which redirects the agent away from the most likely misuse. The only mild gap is that it does not name the specific recovery tool, but the sequencing and prohibition are otherwise unambiguous.

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