Skip to main content
Glama

Generate Image

generate_image
Destructive

Generate an AI image from a text prompt using Claude Imagine credits. Returns the image inline plus its full-resolution URL. To change an existing image, use edit_image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel to use. nano-banana-2 (default, best quality/price), gpt-image-2, seedream-4.5, flux-2-pro, z-image (fastest & cheapest)
promptYesImage description
aspect_ratioNoAspect ratio. When omitted, the selected model's own default is used.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedInput schema / properties / aspect_ratio / description
      Previous value: -"Aspect ratio, default 1:1"New value: +"Aspect ratio. When omitted, the selected model's own default is used."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already convey readOnlyHint=false, idempotentHint=false, and destructiveHint=true, so the description is not required to repeat those. It adds valuable context by noting that generation consumes 'Claude Imagine credits' and that the result returns an inline image plus a full-resolution URL. This gives the agent useful expectations about cost and response shape.

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?

The description is two sentences with no filler. The core action is front-loaded, the return behavior is stated, and the sibling alternative is placed at the end. Every sentence earns its place and the structure is easy to scan.

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 tool with 3 parameters, full schema coverage, and no output schema, the description is complete enough: it states the action, the resource consumed, the return value, and the key alternative. Nothing needed to call the tool correctly is missing. The schema covers the remaining model and aspect-ratio choices.

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?

Schema description coverage is 100%, so all three parameters are already documented with descriptions, enums, and defaults. The tool description does not need to add parameter-level detail. The model description in the schema already includes guidance about defaults and trade-offs, so the description adds no extra semantic value here.

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?

The description clearly states the action: 'Generate an AI image from a text prompt.' It also distinguishes itself from the closest sibling, edit_image, by explicitly directing changes to existing images to that tool. The purpose is unambiguous and easily selectable from the sibling list.

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?

The description explicitly tells the agent when not to use this tool: 'To change an existing image, use edit_image.' This provides a clear alternative and a condition for choosing it. The rest of the sibling tools are also clearly differentiated by the focus on image generation from a prompt.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool maps cleanly to a distinct action: generate new media, edit media, retrieve by ID, list history, view models, check credits, and quote a potential cost. Even check_generation and list_generations are clearly separated by lookup-by-id versus listing. No two tools appear to do the same thing.

Naming Consistency5/5

Every tool follows the same verb_noun snake_case pattern, such as generate_image, list_models, and quote_generation. The verbs are descriptive and consistently chosen for each operation. This makes the tool surface highly predictable for an agent.

Tool Count5/5

Eight tools is well-scoped for a media generation server covering image generation, video generation, editing, history retrieval, model discovery, and credit management. Each tool serves a clear purpose without redundancy or feature bloat.

Completeness5/5

The tool set covers the full generation lifecycle: creating images, creating videos, editing images, checking generation status, listing past results, inspecting models and costs, quoting prices, and checking credits. There are no obvious dead ends or missing core operations for the stated domain.

Resources