Skip to main content
Glama

Cancel document upload

cancel_document_upload
DestructiveIdempotent

Give back a reserved slot: deletes the object at that path if it is there, and touches no record. For an upload that went wrong or was thought better of — without it a half-uploaded file would sit in storage attached to nothing, and the next person could not tell it from one that is waiting to be finalized.

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": {
      "path": "<path>"
    },
    "name": "cancel_document_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, so the safety profile is covered. The description still adds real behavior: the delete is tolerant of absence ('if it is there'), no metadata record is touched, and the consequence of skipping it is a misleading orphaned object. What is missing is whether it works on a finalized document or requires an in-progress upload.

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?

The effect and the slot-release framing are front-loaded in the first clause, and the second sentence justifies the tool's existence. The trailing orphaned-file rationale is slightly flowery but short enough to earn its place as a consequence warning.

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 one-parameter mutation with rich annotations and no output schema, the description covers what is deleted, what is not deleted, and why it matters. The remaining gap is scope of applicability (in-progress vs finalized uploads) and the return/confirmation behavior.

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 0%, so the description must carry the load; it only conveys that 'path' identifies the object in storage. It does not state the expected format (bucket/key, URL, opaque token) or whether the path must match the one returned by create_document_upload_url, leaving the agent to guess.

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 effect: 'Give back a reserved slot: deletes the object at that path if it is there, and touches no record.' The 'touches no record' clause implicitly separates it from the record-deleting siblings (delete_document, delete_draft_document), though no sibling is named explicitly.

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 a clear use condition — 'For an upload that went wrong or was thought better of' — which frames it as the abort step in the create-URL/finalize lifecycle. It does not explicitly name finalize_document_upload as the alternative or exclude calling it on an already-finalized document, 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