Skip to main content
Glama

Upload an image for knowledge base articles

colliedesk_kb_image_upload
Idempotent

Store a PNG, JPEG, GIF or WebP image (at most 5 MiB, given as base64) and get the url to link in an article as text. The type is judged from the bytes. Location and camera data are removed. The same bytes give the same image. Images count toward the plan's storage. An image no article links is deleted 30 days after its last upload unless keep is true.

Needs: kb_media:create.

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": {
      "data_base64": "<data_base64>"
    },
    "name": "colliedesk_kb_image_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
altNoAlt text the editor offers when it inserts the image.
keepNoKeep it in the library even if no article ever uses it.
nameNoWhat the media library shows.
data_base64YesThe image bytes, standard base64.

Output Schema

NameRequiredDescriptionDefault
imageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes well past the annotations: discloses the 5 MiB cap, that type is sniffed from bytes, that EXIF location/camera data is stripped, that identical bytes deduplicate to the same image, that images consume plan storage, and the 30-day unlinked-image GC unless keep is true. The required permission kb_media:create is also stated. The only gap is that the dedup case doesn't say whether an existing URL is returned.

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?

Six short sentences, each carrying distinct information — format/size, return value, type detection, privacy stripping, dedup, storage cost, retention, auth. Front-loaded with the action and the payoff (the URL), with caveats after.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 values need not be explained, and the description still names the key output (the URL). It covers limits, privacy, retention, billing impact, and permissions. Minor gap: it doesn't address error conditions such as oversized or invalid base64, though the size cap is stated.

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 coverage is 100%, so all four parameters are already documented, including keep and alt. The description only reinforces keep by tying it to the 30-day deletion rule, which the schema already implies; it adds no new syntax or format detail beyond that. Baseline 3 applies.

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 — store an image in PNG/JPEG/GIF/WebP and return a URL to embed in an article — which immediately separates it from the video upload and media_get/replace siblings. The markdown embedding example makes the intended output use concrete.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the reader can infer this is the tool for attaching images to knowledge base articles. There is no explicit when-to-use vs when-not guidance, and no pointer to colliedesk_kb_media_replace or media_trash for the alternative operations an agent might actually want.

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