Skip to main content
Glama

generateImage

Generate an AI image from a prompt and return a hosted imageUrl for createPost or patchPost. Use listModels with kind=image to choose a model and check its image allowance cost. Nothing is posted.

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

Input Schema

NameRequiredDescriptionDefault
modelNoImage generation model: a model id from GET /v1/models?kind=image, or a built-in name ("gemini-flash", "gpt-image-1.5" for GPT Image 2.6, "nano-banana-pro").
promptYesDetailed image prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Image generation model: a model id from GET /v1/models?kind=image, or a built-in name (\"gemini-flash\", \"gpt-image-1.5\", \"nano-banana-pro\")."New value: +"Image generation model: a model id from GET /v1/models?kind=image, or a built-in name (\"gemini-flash\", \"gpt-image-1.5\" for GPT Image 2.6, \"nano-banana-pro\")."
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare openWorldHint=true, idempotentHint=false, and destructiveHint=false, so the safety profile is largely covered. The description adds genuinely useful behavior: the output is a hosted URL rather than a post, and generation consumes a model-specific image allowance. It stops short of saying whether repeated calls with the same prompt are billed twice or how long the hosted URL persists.

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?

Three sentences, front-loaded with the action and the return value, with no filler. The model-selection/cost sentence sits between the action and the outcome statement, slightly interrupting the flow, but nothing is wasted.

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 tool with no output schema, the description covers the action, the return value, the model-selection prerequisite, and the side-effect boundary. The only remaining gap is what the imageUrl's lifetime or reuse constraints look like when passed to another tool.

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 both parameters are already documented, and the baseline would be 3. The description still adds value by pointing at the authoritative source for valid model ids (listModels with kind=image) and tying the model choice to allowance cost, which the schema does not convey.

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?

States a specific verb and resource ("Generate an AI image from a prompt"), names the concrete return value (hosted imageUrl), and lists the downstream consumers (createPost, patchPost). The closing "Nothing is posted" closes the main ambiguity an agent could have about side effects.

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

Usage Guidelines5/5

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

Gives an explicit prerequisite step (call listModels with kind=image to pick a model and check its image allowance cost) and tells the agent what to do with the result next. It also states a negative expectation ("Nothing is posted"), so the agent knows not to look for a published post.

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