Skip to main content
Glama

generate_image

Generate images from text prompts, save them to a gallery, and return the resulting image.

Instructions

İstemden görsel üretir; dosyayı galeriye kaydeder ve görseli döndürür.

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
nNo
sizeNoauto ya da GENxYUK (kenar ≤3840, 16'nın katı, oran ≤3:1)auto
formatNopng
promptYes
accountNoHesap kimliği. Boşsa etkin hesap.
qualityNoauto
backgroundNoopaque
referencesNoGaleri adı, mutlak dosya yolu ya da data:image/...;base64,... (en fazla 16, toplam 64 MB)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose one non-obvious side effect: the generated file is persisted to the gallery, not just returned. It says nothing about cost, rate limits, account selection behavior, or whether generation is synchronous, which matters for an 8-parameter generation tool.

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 compact sentence that front-loads the primary action and appends the side effect and return value. Nothing is wasted, though the terseness comes at the cost of missing guidance.

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 tool with 8 parameters, no annotations, no output schema, and partial schema coverage, this description is too thin. It never explains parameter behavior, account targeting, output format choices, or output shape, so an agent would need to guess on several dimensions.

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?

Schema description coverage is only 38% across 8 parameters, so the description should compensate but mentions none of them. It does not clarify prompt semantics, what 'n' does, the size grammar, or what the 'references' strings mean, leaving several parameters documented only by terse enum or type information.

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?

The description names a specific verb and resource ('generates an image from the prompt') and adds two concrete outcomes: the file is saved to the gallery and the image is returned. It does not explicitly distinguish this tool from siblings like edit_image or animate_image, but the core purpose is unambiguous.

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 guidance on when to choose this tool over edit_image or animate_image, and no stated preconditions. The only implicit signal is that it takes a prompt rather than an existing image, which the agent must infer.

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