Skip to main content
Glama

Generate an image

generate_image
Destructive

Render an image and return a run id. Poll get_run_status for the URL. Call quote first if the budget matters.

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

Input Schema

NameRequiredDescriptionDefault
seedNo
modelNoModel id from list_models. Omit or pass "auto" for the default (nano-banana).
promptYesWhat to render. Specific beats poetic. Describe what IS in the frame, never what is absent — the default model has no negative prompt, and naming a thing to exclude ("no text", "its green light off") tends to paint it instead.
ref_urlsNoReference images for identity or composition. Only some models accept these — check list_models.
aspect_ratioNo9:16 for feeds and stories, 16:9 for landscape, 1:1 for square placements.9:16
output_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark this as non-readonly, non-idempotent, open-world, and destructive. The description adds useful behavior beyond that: generation is asynchronous, returns a run id rather than the final URL, and may consume budget requiring quote. It still does not spell out what 'destructive' means here (cost vs. asset creation), so not a 5.

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?

Three short sentences, front-loaded with the core action/return, then the polling step, then the budget caveat. No wasted wording.

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?

For a no-output-schema async generation tool, the description covers the essential return contract (run id) and how to get the result URL. Annotations cover safety/idempotency. It could mention polling cadence or cost specifics, but is otherwise complete.

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?

The description adds no parameter-level meaning; all guidance lives in the schema. Coverage is 67%, with rich prompt/model/aspect_ratio descriptions, and the two undocumented fields (seed, output_format) are largely self-evident from type/enum, so the schema carries this dimension adequately but the description contributes nothing.

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?

Names a concrete verb ('Render') and resource ('an image') and states the immediate return value (a run id). It does not explicitly contrast with generate_video or generate_sound, but the resource makes the scope clear.

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

Usage Guidelines4/5

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

Provides workflow guidance: poll get_run_status for the URL and call quote first if budget matters. This covers the main when and follow-up, though it does not state when not to use it or name alternative generation tools.

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