Skip to main content
Glama

image_generation

Generate images from text prompts through the Grok AI API, with configurable size, count, and response format.

Instructions

Generate images via /v1/images/generations using grok-imagine-1.0.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "image_generation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
sizeNo
promptYesImage generation prompt.
streamNo暂不支持 true;当前仅支持 false/留空
timeout_msNoOptional timeout override
response_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden and does very little with it — nothing about auth, cost, rate limits, or content-policy failure modes. The schema notes that 'stream' only accepts false for now, but that caveat lives in the parameter schema rather than the description, and the description never flags that some enum values may be unsupported.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler and no burying of the key action. It is efficient rather than padded, though the terseness reflects under-specification more than disciplined editing.

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

Completeness2/5

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

For a six-parameter generation tool with no annotations and no output schema, the description leaves too much unaddressed: what is returned (URL vs inline base64), how 'n' affects the response, and what the size presets mean for output. The agent has to reconstruct this from the schema alone.

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

Parameters2/5

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

Six parameters at 50% schema coverage, but the description explains none of them — not 'n', 'size' presets, 'response_format' (notably that 'base64' and 'b64_json' overlap), or 'timeout_ms'. Even the one sentence given only restates that a prompt drives generation, adding no meaning beyond the schema.

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?

States a specific verb and resource ('Generate images') plus the backing endpoint and model ('/v1/images/generations', 'grok-imagine-1.0'), which is enough to distinguish it from video_generation and the search tools. It stops short of an explicit sibling contrast, so it lands just below the top band.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no reference to alternatives such as video_generation, even though image-vs-video is the one routing decision an agent faces here. The only usage cue is the implied purpose of the name.

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