Skip to main content
Glama

Add an image

add_image

Stores an image for slides and returns its asset id; use it as "src" on image and image-text slides and image blocks. Send the image as base64 in data, or a public https link in url (fetched by the server). PNG, JPEG, GIF, WebP or SVG, up to 5 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoOr a public https link to fetch it from.
dataNoThe image as base64 (a data: URL is fine too). PNG, JPEG, GIF, WebP or SVG, up to 5 MB.
nameNoA file name, for your own reference.
deck_idNoThe deck it is for, if there is one yet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare a non-read-only, open-world, non-destructive write. The description adds real value beyond that: the server fetches the URL itself, hard limits of 5 MB and a five-format whitelist, and the fact that an asset id is produced for later reference. It does not say what happens with duplicate uploads, both data and url supplied, or fetch failures.

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?

A single dense sentence with the purpose and return value front-loaded, followed by the input mechanics and constraints. No sentence is wasted and nothing is buried.

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?

There is no output schema, but the description compensates by stating the return (an asset id) and its intended use. For a four-parameter write tool with three non-required parameters, the remaining gap is edge-case behavior (all inputs optional, conflicting inputs) rather than core capability.

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 the baseline is 3. The description does clarify that data and url are alternatives (base64 payload vs. a public https link the server fetches) and reiterates the format/size limits, but it adds no guidance on deck_id or the interaction when neither input is sent.

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?

"Stores an image for slides and returns its asset id" names a specific verb, resource, and return value, and immediately states where the result is consumed ("src" on image and image-text slides and image blocks). An agent can distinguish this from deck/theme/publish siblings without opening any schema.

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?

It states the downstream usage context (use the returned asset id as "src" on image slides/blocks), which tells the agent when this tool is the right precondition to call. It stops short of explicit exclusions or naming an alternative (e.g. upload_theme for themes), so it is clear but not fully routing.

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.