Skip to main content
Glama
MSWEIMZ
by MSWEIMZ

text_to_image

Generate images from text prompts with configurable quality, size, and count. Supports multi-image composition and automatic file download.

Instructions

Generate images from text using Agnes AI.

Supports two models:

  • agnes-image-2.0-flash: Standard quality

  • agnes-image-2.1-flash: Enhanced quality (recommended)

Args: prompt: Text description of the image to generate. model: Model name (agnes-image-2.0-flash or agnes-image-2.1-flash). size: Output size (e.g. 1024x768, 1024x1024, 768x1024). n: Number of images to generate (1-4). Default: 1. images: Optional list of reference image URLs for multi-image composition. output_dir: Directory to save the downloaded image(s). Defaults to ~/agnes_output. return_mode: 'url' for image URL, 'b64' for base64 + local save.

Returns: dict with url, local_path, model, size, n, images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
sizeNo1024x768
modelNoagnes-image-2.1-flash
imagesNo
promptYes
output_dirNo
return_modeNourl

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the tool's behavior: generating images, saving to disk, and returning a dict. However, it does not mention authentication requirements, rate limits, or potential side effects beyond file saving.

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 well-structured: a one-line purpose, bullet points for model options, an Args section with parameter details, and a Returns section. It is front-loaded with the core action and remains concise without unnecessary repetition.

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?

The description covers all parameters, model choices, and return format. It lacks error handling information and prerequisites (e.g., API key setup) but is otherwise sufficient for an agent to invoke the tool correctly. The presence of an output schema makes the return description less critical.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, so the description fully compensates. Each parameter (prompt, model, size, n, images, output_dir, return_mode) is clearly explained with constraints, defaults, and allowed values (e.g., n=1-4). This adds significant value beyond the raw schema.

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 clearly states the tool generates images from text using Agnes AI. The verb 'generate' and resource 'images from text' are specific. Sibling tools like image_to_image and text_to_video are differentiated by name and context, making the purpose unambiguous.

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?

The description provides guidance on model selection, recommending agnes-image-2.1-flash for enhanced quality. However, it does not explicitly state when to use this tool over siblings like image_to_image or text_to_video, although the tool name suffices for basic differentiation.

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

Install Server

Other Tools

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/MSWEIMZ/agnes-mcp'

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