Skip to main content
Glama

Generate media

generate

Run one image or video card from get_task: this spends the workspace credits, so ask your human first, naming the card and its price. To run it another way than the card says (another model; a video's length, resolution or sound; an image's shape or size), pass that here, with values from list_models. Refused when the price is no longer accept_price: the error names the price and settings it would run with, so ask your human about that price and call again with it. Read get_task again without seen when the card now leaves out other images. The result lands in the task roll; poll get_task for files.

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": {
      "task_id": "<task_id>",
      "card": "<card>",
      "accept_price": "<accept_price>"
    },
    "name": "generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardYesA card id from get_task cards.
modelNoA model id from list_models of the card kind.
task_idYes
durationNoVideo: seconds, from the model durations.
left_outNoThe card's left_out image ids, as get_task listed them.
image_sizeNoImage: one of the model sizes.
resolutionNoVideo: one of the model resolutions.
accept_priceYesThe card price your human agreed to; null when get_task shows no price (set when it runs).
aspect_ratioNoImage: one of the model aspect_ratios.
generate_audioNoVideo: false for a silent clip.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / aspect_ratio
      Added value: +{
      +  "description": "Image: one of the model aspect_ratios.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / duration
      Added value: +{
      +  "description": "Video: seconds, from the model durations.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / generate_audio
      Added value: +{
      +  "description": "Video: false for a silent clip.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / image_size
      Added value: +{
      +  "description": "Image: one of the model sizes.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "A model id from list_models of the card kind.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / resolution
      Added value: +{
      +  "description": "Video: one of the model resolutions.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnly=false, destructive=false, openWorld=false. The description goes well beyond: it discloses that this spends workspace credits, requires human consent, that a stale price causes a refusal whose error names the price and settings, and that output lands in the task roll and must be polled via get_task.

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?

The credit-spend and human-approval warning is correctly front-loaded, and every sentence carries operational content. Some sentences are densely compressed to the point of being cryptic, e.g. 'Read get_task again without seen when the card now leaves out other images', which costs a little clarity.

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 10-parameter, no-output-schema, credit-spending mutation tool, the description covers the consent requirement, the override contract, the price-refusal loop, and where results appear plus how to fetch them. Nothing an agent needs to invoke it safely is missing.

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 already 90%, so the baseline is 3. The description still adds real meaning: it explains that model/duration/resolution/generate_audio/aspect_ratio/image_size are overrides of the card's defaults and must come from list_models, and it explains accept_price's null case and its role in the refusal check.

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?

States a specific verb and resource: 'Run one image or video card from get_task', and immediately ties it to the sibling that produces the card. An agent can distinguish this execution tool from get_task (which lists cards) and list_models (which supplies override values) 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?

Gives explicit when-to-use and when-not behavior: ask the human first, naming card and price; pass overrides here only when deviating from the card; re-read get_task when the card now leaves out other images. It also names the failure path (refused when price is no longer accept_price) and the recovery action.

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