Skip to main content
Glama

Upload image

upload_image

Upload a picture to a site from its web address, so pages can use it. url: a JPEG, PNG, WebP or GIF at an http(s) address, up to 10 MB (the type is read from the picture). A file on the person’s own machine goes through start_image_upload (area media). Or found: a find_images (area media) picture’s source — the server copies it and records the credit Commons states. Pictures only (a video: set_video (area media)). Returns the assetId (setNodeFields {assetId}, an imageGallery’s images, a video’s posterAssetId). source, author, license: a url’s credit; found needs none. Full reference: get_reference {topic:"pictures"}.

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

Input Schema

NameRequiredDescriptionDefault
urlNoAn http(s) address to download the picture from
foundNoA find_images source or any Commons file page, copied with Commons’ credit
authorNoWho made the picture
siteIdYesSite id
sourceNoWhere the picture came from: an http(s) link to the page that states its licence (not just the file URL)
licenseNoIts licence, free text, e.g. "CC0 1.0" or "Public domain"
filenameNoName to list it under; defaults to the last part of the address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint false, openWorldHint true, destructiveHint false, idempotentHint false), and the description adds real context beyond them: 10 MB limit, allowed MIME types sniffed from the picture, and the fact that a 'found' image is server-copied with Commons credit recorded. It stops short of stating auth requirements or what happens on a failed/duplicate fetch, so it is strong but not exhaustive.

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

Conciseness3/5

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

Front-loads the core action, but the body is a dense run-on of hyphenated fragments and repeated '(area media)' parentheticals that read as internal taxonomy noise an agent cannot resolve. The content mostly earns its place, but the packing and jargon slow parsing.

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 7-parameter write tool with no output schema, the description still covers accepted input, size limits, credit metadata rules, the alternative tools, the returned assetId and exactly where it is consumed (setNodeFields, imageGallery, posterAssetId), plus a pointer to get_reference for details.

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 schema already documents each field; however the description adds the non-obvious conditional relationship that source/author/license are the credit for a 'url' upload while 'found' needs none, and that filename defaults from the address. That is genuine meaning beyond the field-level descriptions.

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?

Opens with a concrete verb+resource: 'Upload a picture to a site from its web address, so pages can use it.' It also states the accepted formats, the size cap, and where the resulting assetId is consumed, so the agent knows exactly what the tool does and what it produces.

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?

Explicitly routes the agent: a file on the local machine 'goes through start_image_upload (area media)', a video should use set_video, and an already-found image uses the 'found' path via find_images. Both the when and the when-not are stated with named alternatives.

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