Skip to main content
Glama

attachment_commit

Finalizes a file upload and returns its absolute path, SHA-256 hash, and size so an agent can reference and read the file with its own tools.

Instructions

Finish an upload. Returns the absolute path the file now lives at, plus its sha256 and size. Reference that path in the prompt (a resource_link with a file:// URI) and the agent can read it with its own tools.

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": {
      "uploadId": "<uploadId>"
    },
    "name": "attachment_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
uploadIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It helpfully discloses the return payload (absolute path, sha256, size) and how to hand the file to the agent via a file:// resource_link, but says nothing about whether the operation is idempotent, what happens to the staged upload on failure, or whether the uploadId expires.

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?

Three short sentences, front-loaded with the action and the return values, then the follow-up usage hint. The parenthetical '(a resource_link with a file:// URI)' is dense but functional; nothing is wasted.

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?

No output schema exists, so the description must describe returns — and it does, covering path, sha256, and size plus how to reference the file. For a single-parameter finalization tool this is nearly complete, with only error and lifecycle behavior left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter, uploadId, with 0% schema description coverage, so the description must explain it. It does not: it never states that uploadId is the handle returned by the begin/chunk steps, nor its format or lifetime. The gap is small in absolute terms but completely unaddressed.

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?

The description states a specific verb and resource ('Finish an upload') and, in the following sentence, clarifies the outcome (absolute path, sha256, size). That is enough to distinguish it from the sibling upload steps (attachment_begin, attachment_chunk) as the terminal step, though it never names them explicitly.

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?

Usage is only implied: 'Finish an upload' suggests calling this after chunks have been uploaded, and the last sentence explains how to consume the result. There is no explicit statement of prerequisites (e.g., that a prior attachment_begin must have produced the uploadId) or of when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.