Skip to main content
Glama

Agent Toolbox

Generate Image

generate_image
Read-only

Generate a 1024x1024 JPEG image from a text prompt with FLUX.1 schnell; every prompt passes a safety check first (sexual content and other unsafe requests are refused and not charged). Returns the image as base64. Costs USD 0.01 per call, paid with x402 (USDC on Base); calls that fail are not charged.

Input Schema

NameRequiredDescriptionDefault
stepsNoDiffusion steps, 1 to 8 (default 4; more is slower and finer)
promptYesWhat to draw, up to 2048 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior1/5

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

The description discloses useful behavior such as safety checks, base64 output, and per-call cost, but it directly conflicts with the readOnlyHint=true annotation. Generating an image and charging USD 0.01 per call via x402 are side effects, which contradicts a read-only tool declaration.

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 front-loaded with the core action and output, then adds safety, return format, and cost details. Every sentence carries relevant information without waste.

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 image generation tool with no output schema, the description covers the return format, cost model, safety behavior, and failure charging. It is nearly complete, though payment mechanics and usage conditions are not fully elaborated.

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 the schema already documents both prompt and steps. The description adds no parameter-level details beyond the schema, which meets the baseline for high-coverage schemas.

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: generate a 1024x1024 JPEG image from a text prompt using FLUX.1 schnell. The model, output format, dimensions, and modality clearly distinguish it from the text-oriented sibling tools.

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

Usage Guidelines3/5

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

The description implies the tool is for text-to-image generation, but it does not explicitly state when to use it versus alternatives or when not to use it. The safety refusal note is a constraint, not usage guidance.

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