Skip to main content
Glama

Generate an image

generate_image

Generate an image from a text description with GenMagic. Pass 'image' (an https or data URL) to transform THAT image instead of generating from scratch (image-to-image), and type "logo" to make a brand mark. Returns the image inline plus a hosted URL. On-brand automatically when the account has brand personalization on.

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
sizeNoImage size as width x height, e.g. 1024x1024 (square), 1792x1024 (wide), 1024x1792 (tall), 1024x768 (4:3). Made in the closest shape the model renders.
typeNoSet to 'logo' to generate a brand mark instead of a picture.
imageNoOptional reference image (an https URL or a data:image URL) to transform (image-to-image), e.g. a character to keep consistent.
modelNoOptional GenMagic model id for the image (call list_models with category "image" for the ids and prices). Omit it to let GenMagic choose its default.
promptYesA description of the image to create (or the edit to make when 'image' is given).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / size / description
      Previous value: -"Image size, e.g. 1024x1024 (square), 1792x1024 (wide), 1024x1792 (tall)."New value: +"Image size as width x height, e.g. 1024x1024 (square), 1792x1024 (wide), 1024x1792 (tall), 1024x768 (4:3). Made in the closest shape the model renders."
    • removedInput schema / properties / size / enum
      Removed value: -[
      -  "1024x1024",
      -  "1792x1024",
      -  "1024x1792"
      -]
  2. Changed1 schema field changed
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Optional GenMagic model id for the image (call list_models with category \"image\" for the ids and prices). Omit it to let GenMagic choose its default.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), so the description's added value is the return shape: "Returns the image inline plus a hosted URL," which is important since no output schema exists. It also discloses the implicit brand-personalization side effect that changes output without being requested. It says nothing about cost or credit consumption for a generation call, which is a meaningful omission for a paid, non-idempotent operation.

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 sentences, front-loaded with the core action and then the mode switches and return value; nothing is filler. There is mild duplication between "Pass 'image' ... to transform THAT image" and the schema's identical parameter explanation, which is the only reason it isn't a 5.

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

Completeness5/5

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

For a text-to-image tool with no output schema, the definition covers the action, the two alternative modes, the return format, and the automatic branding behavior, and it points to list_models for model ids and prices. An agent has everything needed to choose and call it correctly.

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 100%, so the schema already explains size, type, image, model, and prompt. The description restates the two most consequential ones (image-to-image via 'image', brand mark via 'logo') but adds no syntax, constraints, or defaults beyond the schema text. Baseline 3 is correct when the schema carries the parameter burden.

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 image from a text description") and immediately enumerates its two variant modes (image-to-image transform and "logo" brand mark). That distinguishes it cleanly from generate_music, generate_speech, and generate_text without the agent needing to open any 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?

Gives concrete conditions that steer invocation: supply 'image' to transform an existing image rather than generate from scratch, and set type 'logo' for a brand mark. It also notes that branding is applied automatically when the account has personalization enabled. It stops short of any when-not-to-use guidance (e.g., cost/credit implications or prompts it declines), which keeps it below a 5.

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.