Skip to main content
Glama

Generate an image

generate_image
DestructiveIdempotent

Create an image in Cormak Photo Studio, saved in your image library. Nano Banana 2 costs 2 shared credits. Free-photo trials are not used through MCP. Poll get_generation for the saved image URL. This call is deduplicated by request_id. Before starting, the owner must also approve the exact request at the returned approval_url in Cormak. Then repeat the same request_id and parameters.

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": {
      "request_id": "<request_id>",
      "confirm_spend": "<confirm_spend>",
      "prompt": "<prompt>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleNorealistic
promptYes
referenceNo
request_idYesA UUID for this exact request. Reuse it on retries; changing it requests another paid generation.
aspect_ratioNo1:1
confirm_spendYesSet true only after the user confirms spending their Cormak credits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the 2-credit cost, the dedup-by-request_id guarantee, and the mandatory owner approval gate before generation starts. That is exactly the kind of auth/spend context structured fields cannot convey. It stops short of saying what happens to credits on failure or how long approval lasts.

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-loads purpose and cost, then the workflow steps in execution order; every sentence carries operational content. The final sentence ("Then repeat the same request_id and parameters") is slightly clipped and would read better as an explicit retry instruction.

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 6-parameter, expensive, destructive mutation with no output schema, the description supplies the essential lifecycle: pre-approval, spend confirmation, dedup, and follow-up polling via get_generation. The main remaining gap is return-value shape on the first call, only implied by the mention of approval_url.

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 coverage is only 33%, and the description compensates for just one parameter (request_id reuse on retries). The style enum values (gold, neon, vector, realistic, logo), aspect_ratio choices, and the reference image object get no explanation in either place, so an agent must infer their effect.

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 ("Create an image in Cormak Photo Studio") plus the outcome ("saved in your image library"), which is enough to separate it from generate_video, generate_3d and generate_audio siblings.

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 a concrete operating procedure: approve the exact request at approval_url first, then repeat the same request_id and parameters, and poll get_generation for the URL. It also excludes a case ("Free-photo trials are not used through MCP"). It does not say when to prefer this over generate_product_images or other image-producing siblings, so it falls short of full alternative 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.