Skip to main content
Glama

generate_image

Generate an image locally and write it with a manifest recording exactly how it was made; queued requests avoid memory contention.

Instructions

Generate an image locally and write it to out_dir, with a manifest recording exactly how it was made.

Takes 20s to several minutes depending on profile. Generation is serialised across this whole machine, so a second call waits rather than competing for memory.

The file is written as _.png; pass filename for an exact name instead. Either way, use the path in the result rather than predicting it.

commercial defaults to true, which REFUSES non-commercial profiles (cinematic, kontext-edit). Pass false only if the output genuinely is not commercial. Leave width/height/seed at 0 for the profile's defaults and a random seed.

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

Input Schema

NameRequiredDescriptionDefault
seedNo
stemNoimage
widthNo
heightNo
promptYes
out_dirYes
profileNostandard
projectNo
filenameNo
negativeNo
commercialNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.3

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses expected latency (20s to several minutes), that generation is serialised machine-wide so a second call blocks rather than competing for memory, the default file-naming pattern, and that `commercial=true` actively REFUSES certain profiles. Undisclosed behaviour remains (error paths, missing out_dir, prerequisites such as a running sidecar), so not a 5.

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?

Front-loaded with the core action and side effects, then latency and concurrency, then naming, then parameter defaults — a logical order with paragraph breaks. Every line carries information; no filler sentences.

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

Completeness3/5

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

For an 11-parameter, no-annotation, no-output-schema tool, the description covers the operation profile and key defaults but omits several parameters entirely and gives only a partial picture of the return value beyond 'use the `path` in the result'. Adequate but with clear gaps an agent would hit on a first call.

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 0% across 11 parameters, so the description must compensate. It explains seed/width/height default behaviour, the stem vs filename naming interaction, and partially the `profile` enum ('cinematic, kontext-edit' are non-commercial), but leaves `negative`, `project`, and the rest of the profile vocabulary undefined.

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 locally') plus the two side effects: writing a file to out_dir and writing a manifest. This clearly separates it from siblings like upscale_image or edit_with_references, though it never explicitly names those as alternatives.

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 concrete conditional guidance: pass `commercial=false` only if output is genuinely non-commercial, leave width/height/seed at 0 for profile defaults, use `filename` for an exact name, and rely on the returned `path` rather than predicting it. It lacks explicit routing to sibling tools (edit_with_references, upscale_image), which keeps it from a 5.

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