Skip to main content
Glama

Uploads Store Files

uploads_store_files

Stores files selected in the Workspace Files picker, validates base64 content, size and type within the user quota, and returns upload IDs and metadata for later use.

Instructions

Upload callback that the Workspace Files picker UI calls with the files the user selected; it is app-only (hidden from the model), and models should open uploads_file_manager instead. Each file is base64-decoded, limited to 25 MiB, checked against its declared type and stored for one hour by default within the user's upload quota. Returns the user's stored uploads, newest first, with upload_id, display_name, type, size and expires_at.

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": {
      "files": "<files>"
    },
    "name": "uploads_store_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesFiles selected in the Workspace Files picker, as produced by its drop zone. The total request is also bounded by the server's HTTP request-size limit.

Output Schema

NameRequiredDescriptionDefault
resultYesFiles currently stored for the calling user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false) by disclosing decoding behavior (base64), a 25 MiB per-file ceiling, content-vs-declared-type re-validation, a one-hour default retention, and the user's upload quota constraint. These are exactly the operational facts an agent could not derive from the annotation flags.

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 dense sentences with no filler, and the app-only restriction is front-loaded before the behavioral detail. It is slightly run-on due to stacked semicolon clauses, but every clause carries information.

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?

Covers retention, quota, validation, and the shape of the returned upload list, so an agent knows the lifecycle of what it stores. Minor gaps remain around failure behavior (e.g., what happens when the quota is exceeded or a type check fails), though an output schema exists to describe returns.

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 schema already documents name, size, type and data fields including the 26214400-byte limit. The description restates the size cap and type checking, adding only marginal meaning beyond the structured fields; the baseline of 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 ('Upload callback that the Workspace Files picker UI calls with the files the user selected') and immediately scopes it as an app-only callback rather than a model-facing tool. An agent can distinguish it from uploads_file_manager without opening either schema.

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?

Explicitly says the tool is app-only, hidden from the model, and directs the agent to open uploads_file_manager instead. This is a rare case of a definition that states when NOT to use the tool and names the correct alternative by name.

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

Deploy Server

Other Tools