Skip to main content
Glama

FlowAPI

generate

Idempotent

Submit an image or video job. Waits up to 40 seconds, then returns the job id.

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

Input Schema

NameRequiredDescriptionDefault
inputYes
modelYesModel id from list_models, e.g. vendor/model.
parametersNoModel parameters: spec fields, n (images) or duration (video seconds).
idempotency_keyNoReuse the same key to retry without paying twice. Generated if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The 'waits up to 40 seconds' disclosure is genuinely valuable context beyond the annotations, which only declare idempotency and read-only status. However, it leaves the critical ambiguity unresolved: what state the job is in if it does not finish within 40 seconds, and whether the work continues in the background. That gap matters for a blocking, credit-consuming generation call.

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 sentences, zero filler, with the action and the timeout behavior front-loaded. Nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested-object, asynchronous generation tool with no output schema, the description is thin: it does not explain the job lifecycle, whether results are returned or only an id, or how to proceed afterward. The 40-second timeout note is helpful but leaves the post-timeout state undefined.

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?

Schema coverage is 75%, so the schema already documents model, input.type, references, and idempotency_key. The description adds no parameter meaning at all — no explanation of the text/image/reference input modes or how parameters differ between image and video jobs. Baseline 3 is appropriate given the schema does the heavy lifting.

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?

The description gives a concrete verb and resource ('Submit an image or video job'), which is far more specific than the vague tool name 'generate'. It implicitly separates the tool from siblings like get_job and quote, though it never names them or states the boundary explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: returning a job id suggests get_job for status polling, and the 'input'/'model' requirements hint at list_models and upload_file prerequisites, but none of this is stated. There is no explicit when-to-use or when-not-to-use guidance relative to quote or get_job.

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