Skip to main content
Glama

Uploads Delete File

uploads_delete_file
Idempotent

Permanently deletes a temporary Workspace Files upload from the MCP server's upload area to free quota before expiry; Google Drive is not touched.

Instructions

App-only callback that permanently deletes one of the user's Workspace Files uploads from the MCP server's temporary upload area, freeing quota before the upload expires; Google Drive is not touched (for Drive files use drive_delete_file). Models cannot call it: uploads expire on their own, and the extended tier's get_mcp_apps_diagnostics uses it for its self-test. Returns status 'deleted', or 'not_found' when the ID is unknown or already expired, with the name.

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

Input Schema

NameRequiredDescriptionDefault
nameYesUpload ID (upl_...): the upload_id (also name) of a file listed by uploads_list_files.

Output Schema

NameRequiredDescriptionDefault
nameYesUpload ID requested for deletion.
statusYesWhether the upload was deleted or not found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations it discloses what is affected (temporary upload area / quota), what is unaffected (Google Drive), why deletion is safe despite being a delete (uploads expire anyway) which reconciles the destructiveHint=false, and the failure mode 'not_found' for unknown or expired IDs. The only thing not covered is whether concurrent repeats behave identically, though idempotentHint already implies it.

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?

It is compact and front-loads the core action, then the Drive exclusion, then the caller restriction and return states. The semicolon-chained single sentence is dense, and the return-state sentence is partly redundant with the existing output schema, but nothing is padded.

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 single-parameter, non-open-world delete callback with an output schema and full annotations, the description covers every decision an agent needs: what it deletes, what it does not touch, who may call it, and what the failure mode is. No meaningful gap remains.

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 already documents 'name' as the upl_... upload ID from uploads_list_files. The description adds only the edge-case semantics that an unknown or expired ID yields 'not_found', not extra detail about the parameter's format or sourcing.

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 gives a specific verb and resource ('permanently deletes one of the user's Workspace Files uploads from the MCP server's temporary upload area') plus its scope boundary, and explicitly names the sibling it is not ('Google Drive is not touched (for Drive files use drive_delete_file)' ). An agent can distinguish it from drive_delete_file and the other uploads_* tools without opening any 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 states explicitly who calls this (app-only callback, used by the extended tier's get_mcp_apps_diagnostics self-test) and who must not ('Models cannot call it: uploads expire on their own'), and it routes Drive deletions to drive_delete_file. When-to-use, when-not-to-use, and the alternative are all present.

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

Deploy Server

Other Tools