Skip to main content
Glama

Generate an AI image

generate_image
Destructive

Generates an AI image on the signed-in aicut account and puts the aicut card in front of the user. It waits for the image server-side for as long as one request safely can (about 24 seconds), so it usually returns the finished image with its url directly. WHEN: the user asks for an image. Call list_models first if you have not this session (an unpublished combination is rejected). get_recipe starter-image has the first-image steps. CONSENT: a real person's picture only with their permission, never a public figure or celebrity. AFTER: succeeded is finished; queued or processing was not ready in time: wait_for_generation with the returned id and media: "image". THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. TIMING: an image usually finishes in under 90 seconds and can take up to about 4 minutes; this call waits about 24 seconds for it itself. COST: this spends the user's tokens. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNo`false` returns the job id at once (no wait of about 24 seconds): for several images, start them all, then ONE `wait_for_generation` with `ids`. Default true.
modelYesModel id exactly as `list_models` returns it (for example `gpt-image-2.5`). The user's pick, else the one `list_models` marks `recommended`; never a cheaper one to save them tokens.
imagesNoInput image URLs to edit or use as references, on the models that accept them: public https URLs (aicut fetches and stores them) or earlier generations' URLs on this account.
promptNoWhat the image should show. The model's `prompt` parameter in `list_models` gives its character limit.
qualityNoQuality tier, on the models that publish a `quality` parameter; higher costs more. Only if the user asked; never to save tokens, never carried over.
backgroundNo`transparent` gives a PNG with alpha. Only `gpt-image-2.5` and `gpt-image-2.6` take it; other models refuse it.
resolutionNoOne of the model's published options (for example `1k`); higher costs more. Only if the user asked; never to save tokens, never carried over.
aspect_ratioNoOne of the model's published `aspect_ratios` (for example `9:16`).
estimate_onlyNoPrice only; creates nothing.
studio_run_idNoThe open studio run's `run_id`; null = outside it; covered only under its run ticket, else its own priced ask.
idempotency_keyNoRetry key (IDEMPOTENCY).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / background
      Added value: +{
      +  "description": "`transparent` gives a PNG with alpha. Only `gpt-image-2.5` and `gpt-image-2.6` take it; other models refuse it.",
      +  "enum": [
      +    "auto",
      +    "transparent",
      +    "opaque"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / studio_run_id
      Added value: +{
      +  "description": "The open studio run's `run_id`; null = outside it; covered only under its run ticket, else its own priced ask.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  4. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Model id exactly as `list_models` returns it (for example `nano-banana-2`). Use the one the user asked for; never substitute a cheaper model to save them tokens."New value: +"Model id exactly as `list_models` returns it (for example `gpt-image-2.5`). The user's pick, else the one `list_models` marks `recommended`; never a cheaper one to save them tokens."
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The annotations only flag destructive/openWorld/idempotent=false; the description supplies the substance they cannot: a ~24s server-side wait, the succeeded/queued/processing return states with their follow-up path, the 90s-to-4-minute timing envelope, token spend with a price-confirmation protocol, consent limits on real people and celebrities, and idempotency handling. Nothing here contradicts the destructiveHint=true annotation — spending tokens and creating a persistent asset is consistent with it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The ALL-CAPS labeled sections (WHEN/AFTER/THE CARD/WAIT/TIMING/COST) make it scannable and front-loaded, which is a genuine strength. But the opening sentence already states the ~24-second wait and TIMING repeats it verbatim, and 'COST: this spends the user's tokens' is immediately restated by 'SPENDS TOKENS' — roughly a sentence of pure duplication in an already dense block.

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 an 11-parameter, money-spending, destructive, open-world tool with no output schema, the description covers what an agent cannot infer: what comes back (a `url` or a job id), how long to expect, what to do on a not-ready status, and how to price before committing. The only missing piece would be the exact response field names, which is minor given the state names are given.

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 100%, so the baseline is 3, but the description adds real procedural meaning the schema does not: the model must come from `list_models` and may be rejected as an unpublished combination, and `estimate_only: true` must be used to price before asking for a go. It does not add anything for `images`, `aspect_ratio`, or `studio_run_id` beyond what the schema already says.

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 ('Generates an AI image on the signed-in aicut account') plus a concrete side effect ('puts the aicut card in front of the user'). That card behavior and the image-only scope separate it cleanly from generate_video, upscale_image, and show_generation 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 ('the user asks for an image'), prerequisites ('Call `list_models` first ... an unpublished combination is rejected'), and named alternatives for each branch. It also names the tools NOT to use here — `show_generation` for the card and timers/background shells instead of `wait_for_generation` — which is exactly the routing an agent needs.

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.