Skip to main content
Glama

Generate image

generate_image

Generate an image with gpt-image-2 (native — no third-party service) and store it; returns a signed URL. Use it to produce an 'after' mockup for a before/after comparison, or any illustrative image. Prompt for the job: abstract/clean, no text unless asked, say the aspect ratio. Pair the URL with a 'before' (capture_screenshot or an uploaded image) via add_before_after.

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
sizeNoImage size (default 1024x1024). 1536x1024 = wide, 1024x1536 = tall.
promptYesWhat to generate. Be specific; say 'no text/lettering' unless text is wanted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false, and the description is consistent with that (it writes/stores an image and mints a fresh signed URL each call, so repeated calls are not idempotent). It adds useful behavior beyond the annotations: persistence of the output and the signed-URL return form. It stops short of cost, latency, or URL expiry, which would matter for an external-model call.

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 tight sentences, front-loaded with what the tool is and what it returns, then usage, then the prompt convention. No sentence is redundant, and the telegraphic phrasing ('Prompt for the job: abstract/clean, no text unless asked') still parses cleanly.

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 two-parameter tool with no output schema, it covers the essentials: required prompt, size behavior, persistence, and return value. The only gaps are operational details (cost, latency, signed-URL lifetime) that an agent would want before calling an external image model.

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 baseline is 3, and the description goes beyond it by giving prompt-writing semantics ('abstract/clean, no text unless asked', 'say the aspect ratio') that map intent onto the prompt and size parameters. It does not restate the enum values, which the schema already documents.

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?

Names a specific verb and resource ('Generate an image'), pins the engine (gpt-image-2, native, no third-party service), and states the side effect ('store it; returns a signed URL'). It also separates itself from capture_screenshot by casting that tool in the role of producing the 'before' image rather than the generated one.

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 use cases ('after' mockup for a before/after comparison, or any illustrative image) and names the alternative path for the other half of that workflow (capture_screenshot or an uploaded image via add_before_after). The agent knows both when to call this and what to call alongside 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