Skip to main content
Glama

Outbox: upload an image

outbox_upload
Idempotent

Uploads PNG, JPEG, GIF, or WebP image data or a local file and returns a content-addressed URL for embedding in page HTML.

Instructions

Uploads an image (png, jpeg, gif or webp; no SVG) and returns a content-addressed URL to reference from page HTML. Pass data as base64 plus contentType.

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": "outbox_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoImage bytes in base64 (without the data: URI prefix)
file_pathNoLocal image file (relative to OUTBOX_FILES_DIR). Mutually exclusive with data
contentTypeNoImage MIME type (required with data)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=true, openWorld=true, so the safety profile is covered. The description adds value beyond that by documenting accepted MIME types with an explicit SVG exclusion and by explaining that the output is content-addressed — consistent with the idempotent hint. It omits size limits, auth requirements, and failure behavior, keeping it short of a 5.

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?

Two compact sentences with the format constraints and return value front-loaded; nothing is wasted. The second sentence mostly repeats schema content, which slightly dilutes the density but does not harm readability.

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?

With no output schema, the description carries its weight by explaining what the tool returns and how to use it in page HTML, and it pins down the accepted image formats. Gaps remain around upload size limits and the file_path path being unmentioned, but for a simple three-parameter upload tool it is nearly complete.

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 description coverage is 100%, so all three parameters, including the mutually-exclusive `file_path` alternative, are already fully documented. The description only restates the `data` + `contentType` pairing without adding format or encoding detail beyond the schema, so 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 ("Uploads an image") and adds concrete scope: allowed formats png/jpeg/gif/webp with an explicit exclusion ("no SVG") plus the return value (a content-addressed URL). An agent can tell exactly what this does and what it produces without opening the schema.

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?

Implies usage by saying the returned URL is meant "to reference from page HTML," which sets the context for calling it. It gives no explicit when-not guidance and never mentions the alternative input mode (`file_path` vs `data`), so an agent with a local file must infer that choice from the schema alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.