Skip to main content
Glama

Agent Data Tools: AI

Generate an image from a text prompt

image

Text-to-image generation with FLUX.1 schnell. Send a prompt, get a 1024x1024 JPEG back as base64 in a few seconds. Use for illustrations, thumbnails, mockups, avatars and social media images. Optional steps parameter (1-8, default 4) trades speed for detail. Example: prompt=a lighthouse on a cliff at sunset, watercolor, steps=4. Price $0.02/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only; not marked read-only because each call is charged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsNoDiffusion steps, 1-8 (default 4)
promptYesWhat the image should show (3-800 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/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, but the description adds substantial context beyond them: the return format (1024x1024 JPEG as base64), latency ('a few seconds'), pricing ($0.02/call via x402 USDC or card key), a failed-call-is-free guarantee, and it explicitly explains WHY readOnlyHint is false (each call is charged, despite reading/computing only). That last point is a genuinely valuable reconciliation of behavior with annotations.

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?

Front-loaded with what it is, then return shape, then use cases, then the parameter nuance and pricing. Dense but every sentence carries distinct information; the only slight excess is the parenthetical pricing detail, which is nonetheless operationally relevant.

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?

With no output schema, the description takes on the burden of describing the return value (1024x1024 JPEG, base64) and does so, plus latency and cost. For a simple 2-parameter generation tool, nothing an agent needs to call it correctly is missing.

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 and both parameters are already documented in the schema. The description goes further by explaining the tradeoff behind 'steps' ('trades speed for detail') and including a worked example (prompt + steps=4), which adds interpretation rather than restating the range.

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+resource ('Text-to-image generation with FLUX.1 schnell') naming both the operation and the underlying model. This cleanly distinguishes it from every sibling (ai_chat, ai_speech, transcribe, describe, ai_embed), none of which produce images.

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

Usage Guidelines4/5

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

Gives concrete use cases ('illustrations, thumbnails, mockups, avatars and social media images'), which tells the agent when this is the right pick. However, it never names an alternative or states when not to use it (e.g. editing an existing image), so it stops short of full routing 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.