Skip to main content
Glama

Generate an image (AI)

create_image

Generate an image from a description and store it in MediaStudio — 'fresh bread on a wooden table, warm light'. Describe subject, mood and style completely; do not put text into the image that the user did not ask for. Pick the format that fits its use. Uses the AI quota.

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": "create_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNosquare 1:1, portrait 4:5, story 9:16, landscape (link preview), wide 16:9, pin 2:3.
promptYesWhat the image should show (3–2000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-idempotent, closed-world mutation, so the safety profile is covered. The description usefully adds that the image is persisted into MediaStudio and that the call consumes AI quota — a cost signal absent from annotations. It still does not say what is returned (e.g. a media ID) or whether generations are repeatable/distinct per call.

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?

Four short sentences, front-loaded with the verb and destination, and every clause carries operational value. The inline quoted example is slightly awkward but functions as a compact illustration of prompt quality.

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?

For a two-parameter generative tool with full annotation coverage, the description covers purpose, prompt quality, cost, and persistence. The remaining gap is the lack of any statement about the result — with no output schema, the agent can't know what identifier or payload comes back.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by explaining what a good 'prompt' contains (subject, mood, style) and the constraint not to render unasked-for text. The 'format' parameter only gets a generic 'pick the format that fits its use', leaving aspect-ratio choice to the enum descriptions.

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') plus a side effect ('store it in MediaStudio'), and illustrates the input with a concrete example prompt. It does not explicitly differentiate itself from near-siblings like create_media_upload or create_social_formats, but the AI-generation framing is unmistakable.

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?

Gives actionable usage context: describe subject, mood and style fully, avoid unrequested text in the image, and choose the format that fits the use case. What's missing is routing guidance versus alternatives (e.g. uploading an existing image instead of generating one).

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.

Resources