Skip to main content
Glama

Upload a file to storage

upload_storage_file
DestructiveIdempotent

Save a file into a bucket. Pass source_url (a public https download link, e.g. a chat attachment link; up to 100 MB, PDFs and zips fine), or the content as text (notes, JSON, CSV, code, HTML), or as base64 (up to 3 MB). If the key already exists the upload is refused until the customer confirms the overwrite (confirm: true). For files over 100 MB, or chat attachments you cannot send as text or a link, call storage_upload_link and give the customer its dashboard_upload_url (drag and drop).

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": {
      "service_id": "<service_id>",
      "region": "<region>",
      "bucket": "<bucket>",
      "key": "<key>"
    },
    "name": "upload_storage_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesWhere to save it, e.g. "reports/2026/sales.csv". Slashes make folders.
textNoFile content as plain text (UTF-8). Use this or content_base64.
bucketYesBucket name (3-63 lowercase letters, digits, dots, hyphens).
regionYesRegion code from storage_plans or storage_overview, e.g. fra (Frankfurt), usa (Virginia), sgp (Singapore).
confirmNoMust be true. Set it only after the customer has explicitly confirmed this exact change.
service_idYesObject Storage service id, as returned by the matching list tool.
source_urlNoPublic https link the server downloads the file from (up to 100 MB). Use this or text or content_base64.
content_typeNoOptional MIME type, e.g. text/csv. Guessed from the key when omitted.
content_base64NoFile content as base64, up to 3 MB decoded. Use this or text.

Output Schema

NameRequiredDescriptionDefault
keyNo
bytesNo
bucketNo
overwrittenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the safety profile is known. The description contributes real added context: an existing key is not silently overwritten but refused until the customer confirms, plus per-channel size ceilings (100 MB link, 3 MB base64). It does not mention permission/auth requirements, which is the only meaningful gap.

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?

Front-loaded with the core action, then channels, then the overwrite guard, then the escalation path — a sensible priority order. Dense but nearly every clause carries routing or constraint information; the MIME/format examples ("PDFs and zips fine", "notes, JSON, CSV, code, HTML") are the only slightly expendable part.

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?

With annotations, a 100% documented 9-parameter schema, and an output schema, the description closes the remaining gaps an agent needs: how to supply content, size limits per channel, the overwrite-confirmation workflow, and where to go when the file is too large. Nothing required to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 still adds interpretive value by tying size limits to specific channels and explaining the operational trigger for confirm (existing key + explicit customer confirmation) rather than just restating constraints.

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?

Opens with a concrete verb+resource ("Save a file into a bucket") and immediately distinguishes itself from the sibling it is not (storage_upload_link for >100 MB or untransferable chat attachments). An agent can route between the two 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 enumerates the three mutually exclusive input channels (source_url, text, base64) with the conditions that select each, and names the alternative tool plus the exact handoff parameter (dashboard_upload_url) for the oversized case. It also states the overwrite condition that gates confirm: true.

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.