Skip to main content
Glama

Generate an image

generate_image

Draw 1 to 4 images from a prompt. Without profile the prompt reaches the image model exactly as written, for anything, not only Instagram. With profile the image is drawn in that profile's look (its visual style and colours). Each newly generated image costs one credit from the Espaço's monthly quota; one that fails is not charged. Answers with a download link per image, valid for 7 days. Save the file if you need it longer. Pass a requestId so a retry after a timeout returns these images instead of drawing new ones.

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

Input Schema

NameRequiredDescriptionDefault
countNo
promptYes
profileNoA profile's handle from list_profiles, or its permanent UUID
requestIdNoAny id you make up for this call, like a UUID. Send the same one if you retry after a timeout or a lost answer: you get the first answer back and nothing is spent twice. Remembered for 24 hours
aspectRatioNo1:1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only say this is not read-only and not destructive), the description discloses credit cost per image against a monthly quota, that failed generations are not charged, that returned links expire after 7 days and must be saved, and that `requestId` makes retries idempotent. These are material operational facts an agent could not infer from structured fields.

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?

Sentences are front-loaded with the core action, then the two modes, then cost, then output/retry. Every sentence carries information, though the `requestId` sentence duplicates schema text and could be trimmed to its behavioral delta.

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 five-parameter, no-output-schema generation tool, the description covers the things an agent most needs: mode selection, credit cost, failure charging, link expiry, and idempotent retries. The remaining gap is `aspectRatio`, which is neither explained here nor self-documenting in the schema, and no mention of prompt length constraints.

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?

Schema description coverage is only 40%, and the description compensates for `profile` by explaining what it actually does (applies the profile's visual style and colours) and for `requestId` by explaining retry behavior. However, `prompt`, `count`, and especially `aspectRatio` get no added meaning at all, and the `requestId` retry explanation largely restates the schema's own 24-hour idempotency note.

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?

The opening sentence gives a specific verb and resource ('Draw 1 to 4 images from a prompt') plus the count range, which immediately separates it from the create_* and list_* siblings. An agent knows exactly what this tool produces without opening the schema.

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?

It states the key branch condition: omit `profile` for a raw prompt aimed at the image model generally (explicitly 'not only Instagram'), include `profile` to inherit that profile's visual style. It also points at `list_profiles` for obtaining a handle. It stops short of explicit exclusions or comparisons to other content-creation siblings, so it is clear but not fully routing.

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