Skip to main content
Glama

Start an upload

start_upload
DestructiveIdempotent

Reserve a file and get a one-time upload address (PUT the bytes there). Use when storing a file. Before: a bucket id, the file size and the SHA-256 of its bytes. Returns an upload id (upl_...) and a one-time address; PUT the exact bytes there, then call commit_upload. Scope: storage:write. Cost: stored bytes are billed from the prepaid balance (get_pricing).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "bkt_0123456789abcdef0123456789abcdef",
      "key": "images/logo.png",
      "checksum": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
      "size_bytes": 2048,
      "idempotency_key": "upload-logo-png"
    },
    "name": "start_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBucket id (bkt_...).
keyYesFile path in the bucket, no leading /.
checksumYessha256:<hex of the bytes>
size_bytesYesExact size of the file in bytes.
idempotency_keyYesUnique per request (8-128 chars). Reuse it on retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true, readOnlyHint=false, openWorldHint=true) the description discloses the two-phase protocol, the one-time nature of the address, the required scope storage:write, and that stored bytes are billed against a prepaid balance. What it does not disclose is the destructive dimension flagged in annotations: whether an existing object at that key is overwritten or when an uncommitted reservation expires.

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

Conciseness5/5

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

Dense and front-loaded: the operation, the usage cue, the prerequisites, the return contract and the follow-up call all appear in order with no filler. Parenthetical asides such as '(PUT the bytes there)' are load-bearing rather than decorative.

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 mutating tool with no output schema, the description supplies the missing return contract (upload id like upl_... and a one-time address), the required scope, and the billing implication. Combined with a fully documented schema and annotations, an agent has everything needed to call it and chain into commit_upload correctly.

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 each of the five required parameters is already documented, including the idempotency-key retry semantics. The description only restates the prerequisites (bucket id, size, SHA-256 of the bytes) without adding format or constraint meaning. Baseline 3 applies when the schema carries the parameter burden.

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 concrete verb and resource ('Reserve a file and get a one-time upload address') and immediately clarifies that the payload is PUT externally rather than passed in the call. It positions itself in a two-step flow by naming commit_upload as the follow-up, so an agent can distinguish it from its sibling without opening the schema.

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

Usage Guidelines4/5

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

"Use when storing a file" plus the explicit sequencing (PUT the bytes, then call commit_upload) gives clear context for invocation and what comes next. It also points to get_pricing for cost. It lacks an explicit when-not or a note about needing an existing bucket id versus calling create_bucket first, so it stops short of full routing guidance.

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