Skip to main content
Glama

Upload Image

upload_image

Downloads an image from a public https link and stores it in the account's media library (QUESTIONSTAR Layout Editor → 'Aus Bibliothek wählen' / choose from library), so the picture is hosted by QUESTIONSTAR and the user can see, use and replace it in the application. Use it for survey logos, question images and backgrounds instead of placing an external link into a survey. Returns the library resourceID (for a survey logo pass it to apply_layout as logoResourceID), the stored image's url and thumbUrl, its width, height and size. Accepted: https links only, PNG / JPEG / GIF / WebP by content (SVG and documents are not), up to 15 MB; images wider or taller than 1000 px are scaled down to fit. Links to private, local or cloud-internal addresses are not fetched (also behind redirects). The write is verified server-side: the result is read from the stored library entry (its final url, thumbnail and dimensions), not from the request. Each call stores a new library entry, even for the same link.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic https link to the image (PNG, JPEG, GIF or WebP, up to 15 MB). The server downloads it; the link itself is never placed into a survey.
descriptionNoName of the picture in the library, as the user will see it (e.g. 'ACME logo'). Omit to use the file name from the link.

Output Schema

NameRequiredDescriptionDefault
urlNoURL of the stored image on QUESTIONSTAR's content host (what surveys use).
sizeNoSize of the stored file in bytes.
widthNoWidth of the stored image in pixels (after scaling when the original exceeded 1000 px).
formatNoStored format: png, jpeg, gif or webp (detected from the content).
heightNoHeight of the stored image in pixels.
scaledNotrue when the image was scaled down to fit 1000 px.
thumbUrlNoURL of the 200 px PNG thumbnail; null when none could be generated.
resourceIDNoIdentifier of the picture in the account's media library — pass it to apply_layout as logoResourceID for a survey logo.
descriptionNoName of the picture in the library.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: each call creates a new library entry even for the same link (concretely explaining idempotentHint=false), images over 1000 px are downscaled, the 15 MB cap, SSRF-style blocking of private/redirect targets, and the server-side verification that the returned data comes from the stored entry. This is the exact mutation context an agent needs before calling.

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, then usage, then return values, then constraints — a logical order that lets an agent stop reading early. It is on the long side and carries some low-value detail (the German UI string, the thumbnail/dimension enumeration already present in the output schema), but almost every sentence is informative.

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?

Covers the full decision surface for a mutating, open-world upload: input constraints, size/format limits, scaling behavior, non-idempotence, security restrictions, and the async-ish caveat that the result is read back from the library. Return fields are named despite an output schema existing, which is mildly redundant but useful for wiring logoResourceID into apply_layout.

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 already 100%, so the baseline is 3; the description still adds value by restating the hard constraints on the url parameter (https only, format by content sniffing, 15 MB, no private hosts) and by clarifying that the link itself is never embedded. It does not add much on the optional description parameter, which the schema already covers.

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 ('Downloads an image from a public https link and stores it in the account's media library') and anchors it to a concrete UI location. It distinguishes itself from the obvious alternative behavior by saying to use it 'instead of placing an external link into a survey', and it names the downstream sibling apply_layout for the logo case.

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 explicit when-to-use cases (survey logos, question images, backgrounds) and points to apply_layout when the result is a logo. It also states what is not accepted (SVG, documents, private/local links) but does not frame these as alternative tools or say what to do instead when a source is already a library asset.

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