Skip to main content
Glama

1ClickSiteAI

Add an image from an address

upload_image

Fetches a PNG or JPG from an https address 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 when your user gives you a picture by address and wants it on the site; write the alt text yourself, one sentence in the site's language that says what the picture shows. It does not put the image on a page: call apply_change_set afterwards with the attachment_id as a number, for example as the imageId of a hero block. The address must be public, use https, answer without a redirect, and hold a file of at most 5 MB; an address that carries a value of the site, such as its phone number, is refused. No check runs on the alt text, so your user owns the wording. rollback_change_set undoes the upload. It costs no credits.

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": {
      "url": "<url>",
      "alt": "<alt>",
      "siteId": "<siteId>"
    },
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
altYesThe alternative text: one sentence in the site's language that says what the picture shows.
urlYesAn https address of a PNG or JPG file, at most 5 MB, that answers without a redirect.
titleNoThe title in the media library. Leave it out to use the file name.
siteIdYesSite id from list_sites or create_site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, so the description needn't restate the safety profile — and it doesn't. Instead it adds constraints the annotations cannot express: the address must be public, https, redirect-free, and ≤5 MB; addresses carrying site values such as the phone number are refused; no validation runs on the alt text; and the call costs no credits. It also discloses that the change is reversible via rollback_change_set.

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 purpose, then the call condition, then the follow-up step, then constraints and cost — a sensible order with no filler. It is dense, packing the URL rules and the site-value refusal into one long clause, which slightly hurts scanability but nothing is genuinely redundant.

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?

With no output schema, the description carries the return values itself and lists all four fields explicitly. It also covers the post-upload workflow and the undo path, which is exactly what an agent needs for a non-read-only, non-idempotent tool that only stages a change.

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 baseline is 3 and the schema already documents url, alt, title, and siteId with lengths and formats. The description reinforces the alt-text intent ('write it yourself, one sentence in the site's language') but repeats what the schema says and adds no new per-parameter syntax or edge cases.

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 — fetches a PNG/JPG from an https address and adds it to the site's media library — and names what it returns (attachment_id, change_set_id, state_version, alt text). The 'does not put the image on a page' clause cleanly separates it from apply_change_set and from generate_image.

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?

Gives an explicit trigger condition ('when your user gives you a picture by address and wants it on the site') and names the correct follow-up tool with the exact handoff value: apply_change_set with attachment_id as a number, e.g. a hero block's imageId. It also names rollback_change_set as the undo path, so both the next step and the reversal are covered.

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