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. Refused when the price is no longer accept_price or the card now leaves out other images; read get_task again without seen then. 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.
task_idYes
left_outNoThe card's left_out image ids, as get_task listed them.
accept_priceYesThe card price your human agreed to; null when get_task shows no price (set when it runs).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world call; the description adds the material facts: it spends workspace credits, requires human consent, can be refused for two specific reasons, and where the output lands (the task roll, retrievable via get_task). That is exactly the context annotations cannot express.

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?

Three tight sentences, front-loaded with the cost warning, which is the most important information. A few compressed clauses ('read get_task again without seen then') sacrifice readability for brevity and cost the top score.

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?

No output schema exists, and the description compensates by explaining that results land in the task roll and are polled via get_task. Cost, consent, refusal, and recovery are all covered; only the exact mechanics of resubmitting after a left_out change remain ambiguous.

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?

With 75% schema coverage the schema already documents card, left_out, and accept_price; the description still adds real meaning by tying accept_price to the price the human agreed to and by framing left_out as the reason a call gets refused. The phrasing 'read get_task again without seen' is opaque and leaves the left_out re-submission flow partly unclear.

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?

States a concrete verb and resource: run one image or video card sourced from get_task. The scope (one card per call) and the credit-spending nature make it distinguishable from the surrounding get_task/start_task tools. It stops short of explicitly contrasting itself with start_task, which is the nearest ambiguous sibling.

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 preconditions (ask your human first, naming the card and its price), explicit failure conditions (price no longer matches accept_price, or the card now leaves out other images), and the recovery action (re-read get_task without seen). An agent knows when to call, when not to, and what to do on refusal.

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