Skip to main content
Glama

Get an address to upload report files

upload_report_file

An upload address for a report's files: pictures, 3D models (self-contained GLB), videos, captions and fonts (acceptedMediaTypes, each up to maxBytes). PUT each file to uploadUrl before expiresAt (curl field; add ?name= to name it); one address takes many files, and each upload answers its sha256, type and size. Name a file in a report block by that sha256: an image is { kind: "image", version: 1, asset: { sha256 }, alt }; a model is { kind: "model-3d", version: 1, asset: { sha256 }, title, description }; a video names its recording and optionally a poster and captions; a before-and-after names one per side; a page lists fonts, pictures, videos, sound, captions or a shared stylesheet as supportingFiles { path: "fonts/brand.woff2", asset: { sha256 } } (a plays its own uploaded film), one copy outside the page's byte limit. A screen of a design is a live page board, not an uploaded screenshot, and a file every board of a design uses goes once in the sharedFiles of its canvas (same shape), so changing it is one edit of its sha256. Large text (a whole document, a list of edits, a page's HTML) goes to the same address with ?as=text (textCurl), and create_report or edit_report names it by sha256. Files belong to the workspace, uploaded as the person; the same bytes answer the first upload. A report holding a person's upload is shared by public link only once an owner or admin confirms it. Treat uploadUrl like a password until it expires.

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

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the non-destructive annotations, it discloses address reuse and expiration, per-file limits, digest-based upload responses, deduplication of identical bytes, workspace and uploader ownership, public-sharing approval, and the need to protect uploadUrl like a password. These details substantially clarify operational and security behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core workflow is front-loaded, but the remainder is a single dense paragraph with semicolon-heavy sentences, inline JSON and HTML, and extensive report-block and design-canvas details. Although most information is useful, its volume and formatting make the essential invocation sequence difficult to scan.

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?

For a complex upload-address tool with no output schema, the description supplies the important response fields, upload procedure, expiration constraint, asset-reference patterns, and downstream report integration. It also covers ownership, sharing, deduplication, and credential handling, leaving no major gap likely to prevent correct invocation.

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?

The sole workspace_id parameter already has complete schema documentation, including whoami as its source and when to omit it. The description adds general workspace-ownership context but no further guidance for selecting or supplying that argument, so the high-coverage baseline 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?

The description immediately establishes that the tool provides an upload address specifically for report assets, then explains the PUT-and-sha256 workflow rather than implying that the tool uploads file bytes itself. The report-specific scope and named create_report/edit_report integration distinguish it from task and support-ticket upload siblings.

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

Usage Guidelines5/5

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

It gives concrete guidance for pictures, models, videos, captions, fonts, supporting files, shared canvas files, and large text, including the special ?as=text route. It also supplies a meaningful exclusion: a design screen should be a live page board rather than an uploaded screenshot.

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