Skip to main content
Glama

Start a file upload

create_upload

Reserve an upload for a file you will send yourself. Returns a tus URL: PATCH the bytes there in pieces of at most 95 MB (headers Tus-Resumable: 1.0.0, Upload-Offset, Content-Type: application/offset+octet-stream, optional Upload-Checksum: sha256 ). Also returns ready-made curl commands and the final download link.

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": {
      "name": "<name>",
      "size": "<size>"
    },
    "name": "create_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
burnNoBurn after the first download (same as max_downloads 1).
nameYesFile name.
sizeYesExact file size in bytes.
sha256NoOptional SHA-256 hex of the whole file; the server checks it when the upload finishes.
expiresNoHow long the share lives: 1h, 6h, 24h (default), 3d or 7d (max).
descriptionNoOptional note shown on the download page (max 2000 chars).
max_downloadsNoDelete after this many downloads. 0 or omitted = unlimited until expiry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only flag non-read-only, open-world and non-idempotent, but the description goes well beyond them: it discloses the return shape (tus URL, curl commands, download link), the 95 MB chunk ceiling, the exact required headers, and the optional checksum behavior. This is the information an agent needs to actually complete the upload after calling.

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, front-loaded with the purpose and followed by the operational payload. The header list is compressed but earns its place for a tus upload. Slightly heavy in a single clause, but no wasted wording.

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?

There is no output schema, so the description carries responsibility for describing returns, and it does so precisely (tus URL, ready-made curl commands, final download link) along with the byte-transfer protocol. For a booking/create tool of this complexity, nothing an agent needs to invoke it correctly is missing.

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 coverage is 100%, so all seven parameters are already documented in the schema. The description adds the post-call mechanics but no extra meaning to individual parameters (expiry, max_downloads, burn, sha256 are left to the schema). Baseline 3 is appropriate.

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 and resource ('Reserve an upload') and immediately clarifies the key mechanic: this tool only reserves, the caller sends bytes. That distinguishes it from a typical 'upload file' tool. It does not explicitly contrast with siblings like create_paste, so it stops short of a 5.

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 phrase 'for a file you will send yourself' implies when this applies (self-driven chunked transfer) and it describes the follow-up PATCH flow. However, there is no explicit statement of when to prefer a sibling such as create_paste or get_download_url, so guidance is implied rather than stated.

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