Skip to main content
Glama

generate_image

Generate images by sending a text prompt to the Grok media endpoint, returning parsed image URLs. Supports aspect ratios, multiple modes, and optional cookie-based authentication.

Instructions

Generate images through the working Grok media endpoint and return parsed image URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNofast or expertfast
countNo
extraNoOptional payload fields merged into the Grok request.
promptYes
accountNoOptional Grok account name from cookies/<name>.json. Overrides cookies.json if provided.
cookiesNoOptional Grok cookies. If omitted, server uses account or cookies.json.
timeoutNo
enable_nsfwNo
aspect_ratioNoExamples: 16:9, 9:16, 1:1, 2:3, 3:2
send_to_telegramNo
telegram_captionNo
telegram_chat_idNo
telegram_bot_tokenNo
Behavior1/5

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

With no annotations provided, the description must disclose behavioral traits like authentication requirements, NSFW handling, or side effects. The one-line description fails to mention any behavioral aspects, offering no insight into what happens during generation or side effects.

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?

The description is concise, fitting in one sentence, but it lacks structure for a tool with 13 parameters and nested objects. While front-loaded, it does not earn full marks as it omits critical details.

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

Completeness1/5

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

Given the tool's complexity (13 parameters, no output schema, nested objects), the description is woefully incomplete. It does not explain the return format, authentication, or behavior of key parameters like enable_nsfw or send_to_telegram.

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

Parameters1/5

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

Schema coverage is only 38%, and the description does not clarify any parameters beyond what the schema already provides. The description adds no meaning to parameters like mode, count, extra, or authentication fields, leaving the agent with incomplete understanding.

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 clearly states the tool generates images and returns parsed URLs, distinguishing it from video tools like generate_video. However, it does not explicitly differentiate from similar image-related tools or specify the domain (Grok), which is acceptable but could be more precise.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool versus alternatives such as generate_video or image_to_video. It lacks any context about prerequisites, use cases, or constraints, leaving the agent without decision support.

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

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