Skip to main content
Glama

Upload a large file in pieces

upload_storage_part
DestructiveIdempotent

Send a file in small pieces when you can only hand over text: call once per piece with the same upload_id (any 8-40 letters/digits you invent), part 1, 2, 3 ... and each piece as base64 (up to 700 KB decoded). Set done: true on the LAST piece (include it in that call) and the server joins all pieces into one file at key (up to 100 MB total). Overwriting an existing key needs confirm: true on the last call. Slow for big files; prefer source_url, the ChatGPT file field or storage_upload_link when possible. Pieces are kept under .upload-parts/<upload_id>/ until the last call.

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>",
      "upload_id": "<upload_id>",
      "part": "<part>",
      "content_base64": "<content_base64>"
    },
    "name": "upload_storage_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesFinal file path, e.g. "updates/report.pdf".
doneNotrue on the last piece: joins everything into key.
partYesPiece number, starting at 1, no gaps.
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.
upload_idYesYour own id for this upload, the same on every piece.
service_idYesObject Storage service id, as returned by the matching list tool.
content_typeNoOptional MIME type for the final file.
content_base64YesThis piece as base64 (up to 700 KB decoded).

Output Schema

NameRequiredDescriptionDefault
keyNo
partNo
bytesNo
completeNo
overwrittenNo
stored_partsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the intermediate state (pieces held under `.upload-parts/<upload_id>/` until the final call), the overwrite hazard and its `confirm: true` gate, the 700 KB/100 MB limits, and the join semantics on `done: true`. This gives the agent concrete context for the destructiveHint=true hint rather than merely restating it.

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 and the sequencing mechanics are front-loaded, and every sentence carries information the caller needs. It is a single dense block rather than broken into steps, which slightly hurts scanability for a multi-call procedure, but there is 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?

For a 10-parameter, multi-call upload protocol with an output schema and full annotation coverage, the description supplies everything an agent needs to call it correctly: encoding, size caps, ordering, completion signal, and overwrite confirmation.

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, but the description adds real meaning beyond the schema: `upload_id` is any id the caller invents and must repeat, `part` numbers must be 1,2,3 with no gaps, and `done`/`confirm` belong on the last call only. Minor gap: retry/idempotency behavior for a repeated `part` number is not described.

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 — send a file in pieces, one call per piece, joined at `key` — and immediately positions it against named alternatives (`source_url`, ChatGPT file field, `storage_upload_link`). An agent can tell exactly what this tool does and how it differs from the single-shot upload siblings without opening any 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?

Gives an explicit when-to-use condition ("when you can only hand over text"), an explicit when-not ("Slow for big files"), and names three preferred alternatives. Nothing is left to inference about routing between this and `upload_storage_file` or `storage_upload_link`.

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.