Skip to main content
Glama

Finish file upload

confirm_upload

mark an uploaded file as complete after PUTting its bytes. always call this after uploading to a file_id slot - without it the file shows as not_uploaded.

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": {
      "file_id": "<file_id>"
    },
    "name": "confirm_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256Nosha256 hex of the uploaded bytes (optional, enables dedup and integrity)
file_idYesthe file_id returned by request_upload_url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false; the description adds lifecycle context the annotations cannot convey — this is a state transition that must follow a raw PUT, and omitting it leaves the file in a not_uploaded state. It stays silent on repeat-call idempotency and error behavior when sha256 mismatches, which limits it to a 4.

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?

Two sentences with no filler, and the core action is front-loaded before the mandatory-call constraint. Nothing could be cut without losing information.

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?

For a two-parameter, no-output-schema finalize step, the description covers what it does, when it must run, and the failure mode of skipping it. It does not address re-invocation or error paths, but nothing essential for a correct first call 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 description coverage is 100%, and the schema already explains file_id (returned by request_upload_url) and sha256 (optional, enables dedup and integrity). The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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: 'mark an uploaded file as complete after PUTting its bytes'. Combined with the sequencing sentence, an agent can distinguish the finalize step from the byte-transfer step. It does not explicitly contrast with the sibling upload_file, so the distinction rests on the 'file_id slot' phrasing rather than a direct callout.

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?

Gives an unambiguous trigger: always call this after uploading to a file_id slot. It also states the consequence of skipping it (file shows as not_uploaded), which is stronger than typical when-to-use guidance. No explicit when-not or named alternative, which keeps it below a 5.

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