Skip to main content
Glama

filesfm_delete_folder

DestructiveIdempotent

Move a folder to the recycle bin. The folder is not destroyed. Root folders and already deleted folders are rejected. 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": {
      "folder_hash": "<folder_hash>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "filesfm_delete_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_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

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds genuinely new context on top: the operation is a soft delete into a recycle bin, so data is recoverable, the required permission scopes, the rejection cases, and the retry semantics of a repeated idempotency key. It does not contravene the destructive hint, it refines it. Not a 5 only because it says nothing about the response or how partial failures surface.

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?

Four short sentences with no filler: what happens, what does not happen, what is rejected, what is required, and how retries behave. The most decision-relevant fact (soft delete) is front-loaded in sentence two.

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 destructive, idempotent two-parameter mutation with annotations and an output schema, the description covers recoverability, permissions, rejection cases, and idempotency. The remaining gap is identifying what folder_hash refers to and where to get it, which is left to the schema pattern alone.

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 parameter meaning; it explains idempotency_key behavior ('A repeated idempotency key returns the first result') but leaves folder_hash entirely unexplained, including how an agent obtains a valid hash. Partial compensation for a two-parameter tool.

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 states a specific verb and resource ('Move a folder to the recycle bin') and immediately clarifies semantics that the name 'delete_folder' would otherwise leave ambiguous ('The folder is not destroyed'). An agent can distinguish it from filesfm_delete_file by resource type without opening either schema.

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?

It gives useful preconditions for when the call will fail (root folders and already deleted folders are rejected) and names required permissions, but offers no explicit when-to-use guidance relative to alternatives such as filesfm_move_folder or a restore path. Usage is implied rather than directed.

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