Skip to main content
Glama

create_image

Generate an image from a text prompt and keep it on MintPage, ready to put in a page. model: grok (Grok Imagine by xAI). Returns url, width, height and ready-made markdown and html. Put it in a page with the returned markdown or html (or its url in an ): the link is permanent and works in MintPage pages; other sites can't embed it. Pro only: 50 images a month. The prompt is sent to xAI. Takes about 5–20 seconds. Requires an API key.

Input Schema

NameRequiredDescriptionDefault
modelNoImage model. grok = Grok Imagine (xAI).grok
promptYesWhat the image should show, in detail: subject, style, colors, composition. Text you want written in the image goes in quotes.
aspect_ratioNo16:9 for a banner or hero, 1:1 for a card, 9:16 for a phone screen.1:1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already mark it as non-read-only, open-world, non-idempotent, and non-destructive; the description adds concrete behavior: permanent MintPage-only link, Pro quota, external xAI prompt transfer, 5–20s latency, API-key requirement, and returned url/markdown/html. No annotation contradiction.

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?

Front-loads the purpose, then compactly covers output format, embedding usage, permanence, quota, latency, and API-key requirements. Every sentence contributes operational detail without padding.

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

Completeness5/5

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

No output schema exists, but the description fully enumerates the return fields and how to embed them, plus the key constraints for a generative external API call. An agent has enough information to decide and invoke it correctly.

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?

All three parameters have full schema descriptions and two have enums, so the schema carries the parameter burden. The description reinforces the model name and external prompt transfer but adds little aspect-ratio or prompt-format guidance 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 an image from a text prompt," and adds that the result is kept on MintPage. This clearly separates it from delete/list image siblings, though it does not explicitly name add_image as the alternative for existing images.

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?

Explains how to use the returned markdown, HTML, or URL in a page and lists prerequisites such as Pro plan, API key, and xAI processing. It does not state when to choose this tool over add_image or list_images, so selection guidance remains implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.