Skip to main content
Glama

generate_image

Create AI images from a text prompt through an OpenAI-compatible endpoint, with optional direct-to-disk saving via output_path for workspace files.

Instructions

Generate an AI image from a text prompt via an OpenAI-compatible /v1/images/generations endpoint (default: api.uxmio.com). Supports saving directly to disk via output_path.

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
nNoNumber of images to generate (1-4, default: 1).
sizeNoOptional image size such as 1024x1024, 1024x1536, 1536x1024, 1024x1792, 1792x1024, auto.
modelNoModel ID (default: gpt-image-2.5). Options: gpt-image-2, gpt-image-2.5, gpt-image-2.6, gemini-3.1-flash-image, gemini-3-pro-image.
promptYesDetailed text description of the image to generate.
qualityNoOptional quality level: auto, low, medium, or high.
output_pathNoOptional local file path to save the generated image (e.g. ./assets/hero.png). Parent directories are created automatically.
response_formatNoPreferred upstream response format (default: b64_json).
include_inline_imageNoWhether to return an inline MCP image content block when binary data is available (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the default endpoint host and that images can be written to disk, but says nothing about authentication requirements, cost/rate limits, failure modes, or what the caller receives when output_path is omitted.

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?

Two tightly written sentences with the core action front-loaded and the endpoint detail following. Nothing is redundant, though the second sentence largely restates the output_path schema description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter generation tool with no annotations and no output schema, the definition leaves meaningful gaps: no mention of credentials/API key needs, no indication of latency or cost, and no guidance on the sibling tools. The endpoint and disk-save details are useful but not sufficient on their own.

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 all eight parameters including n, size, model, quality, and response_format are already documented. The description only echoes the output_path behavior already described in the schema, adding no new parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Generate an AI image from a text prompt') and even names the upstream API shape and default host. The verb 'generate' also implicitly separates it from the 'edit_image' sibling, though the description never explicitly contrasts them.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of edit_image or list_image_models, and no prerequisites are stated. The only contextual hint is the mention of the OpenAI-compatible endpoint, which implies text-to-image rather than editing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools