Skip to main content
Glama

Delete a workspace file

delete_file
DestructiveIdempotent

Permanently delete one workspace file by file_id and free its storage. Existing download/reference URLs and the file in past run outputs stop working. This cannot be undone. Delete only when the user has authorised removal of that file. A file used by a pending run cannot be deleted yet. Repeating deletion of the same ID is safe.

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": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations declare destructive=true and idempotent=true, but the description goes well beyond them by naming the blast radius: download/reference URLs stop working, the file disappears from past run outputs, and storage is freed. It also communicates the pending-run precondition, which appears nowhere in structured fields and is exactly the kind of failure mode an agent needs before calling.

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?

Six short sentences, front-loaded with the action and its permanence, then consequences, then authorization and precondition, then idempotency. Every sentence carries distinct decision-relevant information and none repeats another.

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 destructive tool with no output schema, the definition covers what the agent cannot infer: irreversibility, downstream breakage, the authorization requirement, and the pending-run blocker. Nothing needed to call it correctly or safely 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 0%, so the bare schema only says file_id is a required UUID string. The description compensates partially by tying the parameter to the target resource and noting that repeating the same ID is safe, but it never says where file_id comes from (presumably get_files) or restates the UUID format. Adequate, not compensating fully for the coverage gap.

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 opening sentence states a specific verb and resource ('Permanently delete one workspace file') and names the identifier the call operates on ('by file_id'). It is unmistakably distinct from the read-oriented siblings (get_files) and from upload_file, which is the inverse operation.

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?

It gives an explicit gating condition ('Delete only when the user has authorised removal') and a concrete blocking state ('A file used by a pending run cannot be deleted yet'), which is genuinely actionable during selection. It does not name an alternative tool for the case where the agent should inspect rather than delete (e.g., get_files), so the routing guidance stops just short of the top mark.

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.