Skip to main content
Glama

Sage Agent x402 Tools

gpu_flux_image

Read-only

Generates high-speed raster images from a text prompt using Black Forest Labs FLUX.1 Schnell on Cloudflare Edge GPUs, returning JPEG base64 and a ready-to-embed data_url. Use to create new graphics, thumbnails, or avatars; use ai_vision_analyze to inspect or OCR an existing image. Read-only, stateless; costs $0.030 Base USDC via x402 (unpaid calls return a v2 quote challenge without charging; invalid inputs return 400 uncharged).

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

Input Schema

NameRequiredDescriptionDefault
stepsNoDiffusion inference steps (1-8, default 4; higher values improve detail at slightly higher latency).
promptYesDetailed visual text prompt describing subject, composition, lighting, and style to render.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well past the annotations: it discloses pricing and the x402 payment protocol, that unpaid calls return a v2 quote challenge without charging, and that invalid inputs return 400 uncharged. This is exactly the kind of cost and failure-mode context an agent needs before invoking a paid endpoint. It is marked readOnlyHint/openWorldHint already, so strategy-level safety is covered, and the description reinforces it with "read-only, stateless".

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 densely packed sentences ordered purpose-first, then alternatives, then cost/error semantics — every sentence earns its place with no filler. The final sentence stacks pricing, payment flow, quote-challenge behavior, and HTTP status codes into nested parentheses, which is slightly heavy to parse, keeping it just below top marks.

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 two-parameter tool with no output schema, the description supplies the return format, the invocation cost, and the behavior on unpaid or invalid requests, which is the information that would otherwise be missing. Nothing an agent needs in order to call it correctly and interpret a failure is absent.

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 coverage is 100%, and the schema already explains both `prompt` and `steps` (range, default, latency tradeoff). The description adds no parameter-specific meaning beyond the schema, so the baseline of 3 applies. Nothing is missing, but nothing extra is contributed either.

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 high-speed raster images from a text prompt"), names the model/backend, and describes the concrete output (JPEG base64 plus data_url). It also explicitly contrasts itself with the sibling ai_vision_analyze, so an agent can distinguish creation from inspection without opening either schema.

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 a positive use case set (graphics, thumbnails, avatars) and names the alternative for the inverse case ("use ai_vision_analyze to inspect or OCR an existing image"). The choice condition between the two tools is explicit, leaving nothing to inference.

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.