Skip to main content
Glama

Generate image

generate_image

Generate an image with gpt-image-2 from a prompt, store it, and return its public URL. Metered against the studio's AI credit wallet.

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
sizeNoDefault 1536x1024.
promptYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the mutation and non-idempotent profile is covered structurally. The description still adds real value beyond them by disclosing persistence ('store it'), the returned artifact ('its public URL'), and the billing side effect ('metered against the studio's AI credit wallet'). It is silent on failure modes and content-policy behavior, which for an open-world generative tool is a notable gap.

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 sentences, zero waste, with the core action front-loaded and the cost caveat placed last where it reads as a qualifier rather than burying the purpose.

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

Completeness3/5

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

With no output schema, the description correctly states that a public URL is returned, and it covers cost and persistence for a 2-parameter tool. However, it leaves prompt semantics undescribed and offers no routing guidance among the several generate_* siblings, which an agent needs at call time.

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 coverage is only 50%: size is documented with a default, but prompt carries no description at all. The description only restates that a prompt is the input and adds no constraints on prompt length, content, or how size interacts with the credit cost, so it does not compensate for the coverage gap.

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?

A specific verb+resource ('Generate an image with gpt-image-2 from a prompt'), plus side effects (stores the image, returns a public URL). It does not distinguish itself from the similarly-named sibling generate_section_image, so an agent cannot tell from this text which image generator applies when.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of the sibling image generators. The only implicit signal is the credit-wallet note, which hints that calls have a cost but never says when that cost is warranted.

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