Skip to main content
Glama

filesfm_delete_file

DestructiveIdempotent

Move a file to the recycle bin. The file is not destroyed. A repeated idempotency key returns the first result. Requires files:delete and account permissions. A repeated idempotency key returns the first result.

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_hash": "<file_hash>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "filesfm_delete_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_hashYes
idempotency_keyYes

Output Schema

NameRequiredDescriptionDefault
itemYes
statusYes
replayedNoTrue when this is the stored result of an earlier call with the same idempotency_key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / replayed
      Added value: +{
      +  "description": "True when this is the stored result of an earlier call with the same idempotency_key.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

B3.3/5.0
Behavior4/5

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

Adds genuinely useful behavior beyond the annotations: the operation is a soft delete into a recycle bin, permission scopes are required, and repeated idempotency keys are deduplicated. These details are not derivable from the annotation set alone. Saying the file is not destroyed slightly softens the destructiveHint=true annotation, but this describes recoverability rather than contradicting the hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core facts are front-loaded and each early sentence earns its place. However, the sentence "A repeated idempotency key returns the first result." is duplicated verbatim, which is wasted space in an otherwise short definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Permissions, recoverability, and idempotency are covered, and an output schema exists so return values need no explanation. The gap is parameter-level: with 0% schema coverage, an agent is left guessing what file_hash is and how to supply it, which is the main missing piece for a two-parameter mutation tool.

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?

Schema description coverage is 0%, so the description carries the burden for both parameters. It explains the idempotency_key behavior (a repeat returns the first result) but says nothing about file_hash — no indication that it is a hash/identifier, where to obtain it, or how it relates to file paths. One of two parameters remains semantically opaque.

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 verb and resource ("Move a file to the recycle bin") and clarifies the resulting state ("The file is not destroyed"), so an agent knows this is a recoverable removal rather than a hard delete. It does not explicitly distinguish itself from siblings such as filesfm_delete_folder, but the resource scope (file) is clear.

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?

Gives a prerequisite ("Requires files:delete and account permissions") which helps an agent decide whether the call can succeed. However, it offers no explicit when-to-use vs. alternatives guidance, such as pointing to a folder deletion or a move/rename tool, leaving selection to inference from the resource name.

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