Skip to main content
Glama

Upload an image for a website

upload_image

Host an image for a website and get back its URL, to use as a post's image or in its Markdown (what it shows). Send the image's bytes as base64: PNG, JPEG, WebP or GIF, at most 5 MB. The image is public at that URL as soon as it is uploaded.

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>",
      "data": "<data>"
    },
    "name": "upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThe image file, base64 encoded (no data: prefix).
siteIdYesThe site (id from list_sites).

Output Schema

NameRequiredDescriptionDefault
urlYesThe image's public URL, for a post's image field or its Markdown.
bytesYes
siteIdYes
contentTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

The lone annotation only says readOnlyHint=false; the description carries the real behavioral load by disclosing the 5 MB cap, the accepted formats (PNG/JPEG/WebP/GIF), the required base64 encoding without a data: prefix, and — critically — that the image becomes publicly accessible immediately upon upload. That public-exposure warning is exactly the kind of consequence an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and its payoff, followed by the encoding constraints and the visibility caveat. Every clause contributes a fact an agent needs before calling.

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?

An output schema exists, so return shape need not be explained, and the description still names the return value (URL). For a two-parameter write tool, the format, size, encoding, and public-visibility details leave nothing material missing.

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 both parameters are already documented, but the description adds constraint-level meaning for 'data' that the schema omits: the size ceiling and the allowed image formats. It adds little for 'siteId', which is fine given the schema already points to list_sites.

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 ('Host an image for a website') plus the concrete outcome ('get back its URL'). No sibling tool in the list performs uploads, and the description makes the result and its intended use unambiguous.

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 clear usage context — the URL is meant for a post's image field or inline Markdown — which tells an agent when this tool is appropriate. It stops short of explicit exclusions or naming alternatives (e.g. when to reuse an existing URL via list_posts instead of re-uploading).

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