Skip to main content
Glama

1ClickSiteAI

Generate an image for a site

generate_image

Makes one image with an image model, checks it for lettering and faces, and adds it to the site's media library, then returns its attachment_id, the change_set_id, the site's state_version, and the alt text. Call it only when your user wants a new picture and has no photo to give you. Describe a scene, tools, or finished work in prompt, in English; the image shows no lettering, logos, or faces. Write the alt text yourself. It makes one attempt: if the check fails, it returns an error, nothing is added, and the cost of that image is charged, so change the prompt before you try again. It does not put the image on a page: call apply_change_set afterwards with the attachment_id as a number. It costs 90 agent credits and counts as one of 10 paid calls a minute, and it can take up to 115 seconds. Send an idempotencyKey and send the same one on a retry, so a retry after a timeout returns the image and does not charge twice. No check runs on the alt text, so your user owns the wording. rollback_change_set undoes it.

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": {
      "siteId": "<siteId>",
      "prompt": "<prompt>",
      "alt": "<alt>",
      "placement": "<placement>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
altYesOne sentence in the site's language that says what the picture shows.
promptYesWhat the picture shows, in English: objects, setting, light. No people, text, logos, or web addresses.
siteIdYesSite id from list_sites or create_site.
placementYesWhere it will go: hero, service, area, gallery, or about.
idempotencyKeyNoNew for each image; send the same one when you retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Far beyond what the annotations say: 90 agent credits, a 10-paid-calls-per-minute cap, up to 115 seconds latency, exactly one attempt, an error that adds nothing yet still charges, and the idempotencyKey retry contract that prevents double charging after a timeout. It also discloses that no check runs on the alt text, shifting wording responsibility to the user. The idempotentHint=false annotation is consistent, since a fresh key on each call produces a new image and a new charge.

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?

Purpose and the gating condition come first, followed by the prompt/alt rules, then cost and retry mechanics, which is the right order. It is dense and mostly earns its length, though the run-on middle sentence packs checks, returns, and failure cost into one clause that could be split.

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?

There is no output schema, so the description must name the returns, and it does (attachment_id, change_set_id, state_version, alt text). For a costly, slow, non-reversible-without-follow-up mutation, it covers timing, billing, failure modes, retry safety, and the next call, leaving no gap an agent would hit at invocation time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: prompt must be in English and must avoid lettering, logos, and faces; the alt text must be authored by the agent and is unverified; the idempotencyKey must be reused on retry. Placement and siteId meanings are left to the schema.

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 clause gives a concrete verb chain (makes one image, checks it, adds it to the media library) and immediately names the return artifacts (attachment_id, change_set_id, state_version, alt text). The constraint 'call it only when your user wants a new picture and has no photo to give you' separates it from the upload path, and 'It does not put the image on a page' separates it from apply_change_set.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the positive trigger (user wants a new picture), the exclusion (no photo to give you), and the required follow-up (apply_change_set with attachment_id as a number, or rollback_change_set to undo). It also gives a retry rule: change the prompt before trying again after a failed check.

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