Skip to main content
Glama

Finish an upload

commit_upload
DestructiveIdempotent

Confirm an upload once the bytes are sent. Use when the PUT to the address from start_upload succeeded. Before: start_upload, then the PUT of the bytes. Returns the stored file with its obj_ id. 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": "upl_0123456789abcdef0123456789abcdef"
    },
    "name": "commit_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesUpload id from start_upload.

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?

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=true, idempotentHint=true), and the description adds real context beyond them: required scope storage:write, prepaid-balance billing, and the returned obj_ id. It does not say what the destructiveHint implies - whether the upload id is invalidated after commit or whether a failed commit burns the upload - which is the one gap an agent would want closed.

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?

Four short sentences, front-loaded with the action and precondition; the scope and cost notes are also useful. The telegraphic fragments ("Before: start_upload, then the PUT of the bytes.") are efficient but slightly clipped for an agent parsing sequence.

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?

With one parameter, no output schema, and annotations covering mutability, the description supplies the missing pieces: lifecycle ordering, scope, billing, and what is returned (stored file plus obj_ id). Only post-commit state (what happens to the upload id, failure behavior) is unaddressed.

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% and the schema already describes id as "Upload id from start_upload," so the description's mention of the same provenance adds little. The pattern and format are left entirely to the schema, which is fine, but no new parameter meaning is introduced. Baseline 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?

The description states a specific verb and resource ("Confirm an upload") and pins the exact lifecycle moment ("once the bytes are sent"). It names the sibling start_upload and its PUT step, so an agent can separate this finalize step from the initiate step 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?

It gives an explicit precondition ("Use when the PUT to the address from start_upload succeeded") and an ordered sequence ("Before: start_upload, then the PUT of the bytes"). It also points to get_pricing for cost, so both when-to-use and where-to-look-next are covered.

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