Skip to main content
Glama

generate_image

Create images from text descriptions. Provides temporary URLs for download.

Instructions

Generate images from text prompts using the Grok image model. Returns image URLs in markdown format. Note: URLs are temporary, download or process promptly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText description of the image to generate
nNoNumber of images to generate (1-10, default 1)
aspect_ratioNoAspect ratio of the generated image (default: auto)
resolutionNoResolution of the generated image (default: 1k)
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses output format (image URLs in markdown) and the critical fact that URLs are temporary. This is valuable behavioral context. However, it omits details like rate limits, cost, or potential failure modes.

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 two sentences, each earning its place: the first defines core functionality, the second warns about temporary URLs. No redundant or extraneous information. Front-loaded and efficient.

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?

Given no output schema, the description could explain more about the return format (e.g., markdown syntax, array vs single URL, example). It also lacks details on generation style or quality. While it covers the essential purpose and a key warning, it is not fully complete for a tool with 4 parameters and no output 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% (all 4 parameters have descriptions). The description adds no extra meaning beyond the schema; it merely restates 'text prompts' which aligns with the prompt parameter. Therefore, baseline score of 3 is appropriate.

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 prompts using the Grok image model, with a specific verb and resource. It distinguishes from the sibling tool 'edit_image' which presumably edits images, so purpose is unambiguous.

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

Usage Guidelines3/5

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

The description provides post-generation guidance (URLs are temporary, download promptly) but does not explicitly state when to use this tool versus alternatives, nor does it mention when not to use it. The guidance is helpful but lacks selection context.

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/fl0w1nd/grok-image-mcp'

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