Skip to main content
Glama

upload_report_asset

Attach a binary asset (image, video, font, CSS, JS, etc.) to a report. The returned url is a stable public link suitable for <img src>, <video src>, CSS url(...), or any other reference inside the report's HTML. Pass content_base64 as raw base64 (or a data:<mime>;base64,... URL — both work). Re-uploading the same relative_path replaces the previous asset.

Input Schema

NameRequiredDescriptionDefault
report_idYesUUID of the target report. You must have edit permission on it.
content_typeNoOptional MIME type (e.g. 'image/png', 'video/mp4'). Defaults to 'application/octet-stream' if omitted.
relative_pathYesPath the asset will be addressable by, relative to the report (e.g. 'images/hero.png', 'fonts/inter.woff2'). No leading slash, no '.'/'..' segments, no '%', '?' or '#'. Max 512 chars.
content_base64YesAsset bytes as base64. A `data:<mime>;base64,...` data URL is also accepted — the prefix is stripped automatically. Max 25 MB decoded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key behaviors: the returned url is a stable public link, the tool is idempotent-by-path ('Re-uploading the same relative_path replaces the previous asset'), and both raw base64 and data-URL inputs are accepted. It omits permission requirements (present only in the schema) and rate/size limits, keeping it short of full coverage.

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?

Purpose is front-loaded in the first sentence, followed by return-value guidance and input/replacement notes. Four tight sentences with minimal waste, though the URL-usage sentence is slightly padded.

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?

For a mutation tool with no annotations and no output schema, the description usefully explains the return value (stable public url and where it can be embedded) and the replacement semantics. Authorization and size limits live in the schema and keep it from being fully self-contained.

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 the baseline is 3. The description largely restates what the schema already says about content_base64 (raw base64 or data URL), adding no new syntax or constraint details beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Attach') and resource ('binary asset') against the target report, with concrete examples of asset kinds (image, video, font, CSS, JS). An agent can tell this is the upload counterpart to siblings like delete_report_asset and list_report_assets, though no sibling is named explicitly.

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?

The description implies when the tool is used (to make a binary referenceable inside report HTML) but never states when to prefer it over alternatives or any exclusions. The re-upload clause gives operational context but not selection guidance.

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.