Skip to main content
Glama

generate_image

Generate or edit images from text prompts, reference images, or multi-image compositions. Returns a URL or base64 result for immediate use.

Instructions

Generate or edit an image with agnes-image-2.5-flash. Always returns a URL (or base64).

中文触发:当用户说「agnes生图 / 生成图片 / 做张图 / 文生图 / 图生图 / 改图 / 多图合成」时调用此工具。 Trigger: agnes generate image / text-to-image / image-to-image / edit image.

Presets: size 1K(fast/cheap) / 2K(default, wallpaper 16:9=2624x1472) / 3K / 4K(max quality). ratio 16:9 default (wallpaper), 1:1 social, 9:16 vertical, 21:9 ultrawide. Pass images (public URL or Data URI) for image-to-image / multi-image compose; omit it for pure text-to-image. save_path is optional: when given, the result is also downloaded locally.

Examples:

  • 纯文生图:prompt="赛博朋克夜景壁纸", size="2K", ratio="16:9"

  • 带图改图:prompt="改成雨夜霓虹风格,保持构图", images=["https://.../a.png"]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNo2K
ratioNo16:9
imagesNo
promptYes
api_keyNo
base_urlNo
save_pathNo
response_formatNourl

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and covers the return format ('a URL (or base64)'), the local-download side effect when save_path is set, and the different generation modes. It does not discuss latency, cost, or API-key/endpoint configuration, but those omissions are minor for correct invocation.

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

Conciseness5/5

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

The description is efficient and front-loaded: purpose, model, and return type first, then triggers, presets, parameter conditions, and two concrete examples. The bilingual trigger list and examples are purposeful rather than filler.

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?

For an 8-parameter tool with no output schema, the description covers invocation conditions, parameter behavior, return type, and the optional local side effect with examples. A small gap is the lack of explicit routing to video siblings for video requests, but the tool name and 'image' scope make the boundary clear.

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 description coverage is 0%, so the description compensates by explaining size tiers, ratio use cases, the images parameter's accepted inputs, and save_path's download behavior. It leaves api_key and base_url semantically unexplained, though those are optional infrastructure parameters and all core generation parameters are well covered.

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?

The description opens with a concrete action, resource, and model: 'Generate or edit an image with agnes-image-2.5-flash.' It also lists the distinct modes (text-to-image, image-to-image, edit, multi-image compose) and states the return type, making the tool clearly distinguishable from the video-generating siblings.

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?

It provides explicit invocation triggers in both Chinese and English and gives a clear decision rule: pass `images` for image-to-image/compose, omit it for pure text-to-image. It does not explicitly mention the video sibling tools as alternatives or include a when-not-to-use section, so the guidance stops short of a full 5.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JasonOracle/agnes-2.5-flash-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server