Skip to main content
Glama

Delete a private file

delete_file
DestructiveIdempotent

Deletes a private file: to Recently deleted for 30 days (restore_uploads (area media)). Refused while a product sells it (update_product (area store) file first). When members hold it, refused naming how many unless force:true; meanwhile their My purchases says "removed by the site owner".

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": {
      "siteId": "<siteId>",
      "fileId": "<fileId>"
    },
    "name": "delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoDelete it even though members hold it (default false)
fileIdYesFile id from list_files or an upload, e.g. "f-3f9a…"
siteIdYesSite id (from list_sites)

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?

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds substantial context beyond them: the 30-day recovery window via restore_uploads, the two distinct refusal conditions, the member-facing message shown in My purchases, and the effect of force. This is exactly the recovery/blast-radius information an agent needs before a destructive call.

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?

Front-loaded with the action and its reversibility window, and every clause carries real information. The parenthetical notation ('restore_uploads (area media)', 'update_product (area store)') is slightly cryptic and compresses what could be plainer cross-references.

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 3-parameter destructive tool with no output schema, it covers reversibility, refusal paths, and the force override well. It omits what a successful call returns (confirmation object, remaining recovery window) and any permission requirements, which are minor gaps given the annotation coverage.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description earns an extra point by explaining the practical consequence of force (overriding the member-hold refusal) and by naming the recovery tool tied to the deletion state. It still does not clarify the fileId format or siteId scoping, which the schema already handles.

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?

States a specific verb and resource ('Deletes a private file') and immediately scopes it as a soft delete into 'Recently deleted for 30 days', which separates it from siblings like delete_asset or delete_theme that act on different resource types.

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 clear preconditions for use: refused while a product sells the file, with an explicit remediation (update_product (area store) first), and refused when members hold it unless force:true. It does not, however, contrast with sibling delete tools for other resource kinds, so the agent must infer the resource scoping itself.

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