Skip to main content
Glama

create_generation

Idempotent

Spend credits and enqueue enhancement after user authorization of the estimate. Persist the key before calling.

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": "<generation>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "create_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
generationYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $defs / CreateGeneration / properties / keep_color
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Keep Color"
      -}
  2. Changed3 schema fields changed
    • removedInput schema / $defs / CreateGeneration / properties / detail
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "enum": [
      -        "1",
      -        "2",
      -        "3"
      -      ],
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Detail"
      -}
    • addedInput schema / $defs / CreateGeneration / properties / detail_enhance
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Detail Enhance"
      +}
    • removedInput schema / $defs / CreateGeneration / properties / sharpness_mode
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Sharpness Mode"
      -}
  3. Changed1 schema field changed
    • addedInput schema / $defs / CreateGeneration / properties / sharpness_mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Sharpness Mode"
      +}
  4. Changed1 schema field changed
    • changedInput schema / $defs / CreateGeneration / properties / resolution / enum
      Previous value: -[
      -  "720p",
      -  "1080p",
      -  "2K",
      -  "4K"
      -]New value: +[
      +  "720p",
      +  "1080p",
      +  "2K",
      +  "4K",
      +  "6K",
      +  "8K",
      +  "10K",
      +  "12K"
      +]
  5. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare this a non-destructive, idempotent write; the description adds genuinely new facts beyond them: credits are consumed, work is queued asynchronously rather than completed inline, and the idempotency key must be retained before the call. It does not disclose what happens on insufficient credits or on a replayed key.

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 short, front-loaded sentences with no filler: the cost/action first, then the ordering constraint and the key-persistence instruction. Nothing is repeated or padded.

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

Completeness2/5

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

This is a credit-spending mutation with no output schema and zero schema descriptions, so the description should say what comes back (a generation id?) and how to poll it, or what errors arise from stale pricing. None of that is present, and the ten nested generation parameters are left entirely unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load, yet the nested generation object exposes ten undocumented fields (resolution, fps, the four boolean enhancement flags, upload_id, source_result_id) with no explanation of defaults or interactions. Only idempotency_key gets any treatment via "persist the key," and expected_credits/pricing_revision_id are only hinted at through "the estimate."

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?

"Spend credits and enqueue enhancement" gives a specific verb (enqueue) plus the cost side effect, which is more informative than the bare name create_generation. It also implicitly contrasts with the estimate step it must follow, though it never names estimate_generation 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?

It establishes a sequencing precondition (only after the user authorizes the estimate) and an invocation ritual (persist the idempotency key first), which is real usage guidance. It stops short of naming the sibling estimate tool, stating what to do if the estimate expired, or saying when not to call it.

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