Skip to main content
Glama

generate_image

Create and strictly edit publication-quality scientific figures—diagrams, charts, and maps—from structured prompts, with optional QA validation for labels, legends, and readability.

Instructions

Generate image with specified prompt and optional parameters

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
promptYesThe prompt for image generation (English recommended for optimal structured prompt enhancement)
editModeNoEdit mode for image modification. Use "strict" to preserve everything exactly except the specific change requested (recommended for scientific figures). Use "creative" for artistic interpretation. Default is "creative".
fileNameNoOptional file name for the generated image (if not specified, generates an auto-named file in IMAGE_OUTPUT_DIR)
imageSizeNoImage resolution for high-quality output. Specify "2K" or "4K" when you need higher resolution images with better text rendering and fine details. Leave unspecified for standard quality.
validateQaNoRun QA validation on this generation. Evaluates the figure against publication-quality criteria (spelling, labels, legend, contrast). Requires figureStyle to be set.
aspectRatioNoAspect ratio for the generated image
blendImagesNoEnable multi-image blending for combining multiple visual elements naturally. Use when prompt mentions multiple subjects or composite scenes
figureStyleNoScientific figure style for publication-ready illustrations (Nature, Science quality). Use "scientific_diagram" for process/concept diagrams, "scientific_map" for maps with scale/legend/north arrow, "scientific_chart" for data visualizations with axes and labels.
inputImagePathNoOptional absolute path to source image for image-to-image generation. Use when generating variations, style transfers, or similar images based on an existing image (must be an absolute path)
useGoogleSearchNoEnable Google Search grounding to access real-time web information for factually accurate image generation. Use when prompt requires current or time-sensitive data that may have changed since the model's knowledge cutoff. Leave disabled for creative, fictional, historical, or timeless content.
useWorldKnowledgeNoUse real-world knowledge for accurate context. Enable for historical figures, landmarks, or factual scenarios
maintainCharacterConsistencyNoMaintain character appearance consistency. Enable when generating same character in different poses/scenes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.8/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, and it discloses almost nothing: not where the image is written, whether generation is billed/slow, whether existing files are overwritten, or what the tool returns. The only implicit behavior is that an image file is produced, which is already evident from the name.

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

Conciseness3/5

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

One short sentence is easy to scan and not padded, which is good. However, the phrase "and optional parameters" is filler that consumes the only available slot instead of front-loading useful scope information.

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

Completeness2/5

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

This is a 12-parameter tool spanning image-to-image, blending, scientific figure styles, QA validation, and search grounding, with no annotations and no output schema. The description never acknowledges those capabilities or explains what the call returns, so it is under-specified for the tool's complexity despite a well-documented schema.

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%, with enums and per-parameter explanations covering every mode, so the description correctly defers to the schema. It adds no meaning of its own beyond acknowledging an optional parameter set, which matches the baseline of 3 when the schema does the work.

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?

The description names a specific verb and resource ("Generate image") and mentions the required prompt, so the core action is unambiguous. It stops short of characterizing what kind of generation (text-to-image vs. image-to-image, model style, output artifact), so it is clear but not distinctive.

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 when-to-use guidance at all: no indication of when to prefer editing an existing image over fresh generation, when scientific styles should be selected, or when search grounding is appropriate. All such guidance lives only in individual parameter descriptions rather than in the tool description itself.

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