Skip to main content
Glama

generate_image

Generates images from text prompts using Grok models, downloads them locally, and returns inline MCP Image content for display.

Instructions

Generate images via Grok2API Console models, download them to the grok-mcp host, and return MCP Image content for inline display. Default model: grok-imagine-image; quality=true uses grok-imagine-image-quality. After a successful local download, remote gallery assets are deleted when GROK2API_ADMIN_* credentials are set. aspect_ratio examples: 1:1, 16:9, 9:16.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
modelNo
promptYes
qualityNo
resolutionNo
aspect_ratioNo
delete_remoteNo
Behavior4/5

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

With no annotations, the description carries the burden. It discloses the download-to-host flow, remote asset deletion when admin credentials are set, default model behavior, and quality flag. This goes beyond the schema, though it could expand on auth prerequisites and the effect of n.

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 three sentences, starts with the core purpose, then packs default behavior, cleanup logic, and aspect ratio examples. No wasted words.

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?

Given the 7-parameter surface and no annotations/output schema, the description is quite informative. It covers the main workflow, key defaults, and side effects. However, it leaves some parameter semantics (e.g., n, resolution) vague and does not detail output structure beyond mentioning MCP Image content.

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 0%, so the description must compensate. It adds meaning for model, quality, and aspect_ratio (with examples), but leaves n, resolution, and delete_remote under-specified, making it a partial compensation at best.

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 action (generate images), the resource (Grok2API Console models), and the follow-through (download to host, return MCP Image content). This separates it from siblings like edit_image or generate_video.

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 clear context on how the tool works, including model defaults and quality switching, but it does not explicitly state when to prefer this over alternatives such as edit_image.

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

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