Skip to main content
Glama

Generate an image

image
Read-only

Generates a 1024x1024 image from a text prompt with the FLUX.1 [schnell] model. Returns a JPEG directly, or base64 JSON with format=json. Paid tool: $0.02 per call in USDC via x402 at POST https://x402-tools.com/v1/image. Calling it here returns the endpoint, price and how to pay.

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": "image"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoDiffusion steps, 1 to 8 (default 4). More steps, more detail.
formatNo'jpeg' (default, raw image) or 'json' (base64).
promptYesWhat to draw (max 2000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial context beyond that — pricing, the x402 payment protocol, the remote endpoint, and the two possible return shapes. The one weakness is an internal ambiguity: it says it 'returns a JPEG directly' yet also says 'calling it here returns the endpoint, price and how to pay,' leaving unclear which actually happens on a given call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, front-loaded with what the tool produces and followed by return formats and payment details in a sensible order. Slightly marred by the contradictory framing of whether an image or payment instructions come back from this call.

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?

With no output schema, the description carries the burden of explaining returns, and it does so for both the JPEG and base64 paths plus the paid-endpoint case. The residual gap is the unresolved question of what a call from this MCP server actually yields, which matters for a paid generation tool.

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 the baseline is 3, but the description adds real meaning by explaining that format=json yields base64 JSON while the default yields a raw JPEG, and by tying output resolution to the tool rather than a parameter. It does not extend the steps parameter beyond the schema, keeping it from a 5.

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 (generates a 1024x1024 image), names the exact model (FLUX.1 [schnell]) and the input modality (text prompt). That level of specificity clearly separates it from siblings like screenshot or extract, which operate on existing content rather than producing new images.

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 gives cost context ($0.02 per call in USDC via x402) which implicitly tells an agent this is a paid, rationed operation, but it never states when to prefer it over alternatives such as screenshot, nor any preconditions like having a funded wallet. Usage is implied rather than directed.

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