Skip to main content
Glama

Move to trash

fs_delete
Destructive

Use this when the user asks to delete a file or folder in an approved project. It goes to the computer's trash (the Recycle Bin on Windows) and is never deleted for good; where no trash takes it, nothing is deleted. A folder with contents needs recursive. Links, the project or workspace root and Local Commander's own files are refused. Changes files on the computer. Needs the sessionId from execution_session_open and a new operationId; each call is metered as one execution. A short result is returned inline within about two seconds; otherwise keep the returned IDs for operation_status and operation_output and do not resend the call.

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": {
      "sessionId": "<sessionId>",
      "operationId": "<operationId>",
      "path": "<path>"
    },
    "name": "fs_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile or folder relative to the selected project root (or the workspace root)
recursiveNoRequired to trash a folder that is not empty (default false)
sessionIdYesexecutionSessionId returned by execution_session_open
deadlineAtNoOptional UTC admission deadline at most 60 seconds ahead (queue start timeout, NOT process execution lifetime)
operationIdYesA new random UUID v4 for this call; reuse it only to retry this same call
expectedSha256NoSHA-256 of the file; refused if it changed (optional; files only)
idempotencyKeyNoOptional retry key, 8-128 chars of [A-Za-z0-9._:-]; defaults to operationId
efficiencyProfileNoOptional, unverified label of the client's model, recorded as display metadata in the device owner's local activity statistics. Omit when unknown. Never send credentials or conversation content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description goes well beyond them: what actually happens (move to trash, never permanent, no-op where no trash exists), the recursive requirement for non-empty folders, the refusals, session/metering cost ('one execution'), and the two-second inline-or-async return path with an instruction not to resend. This is exactly the operational context an agent needs before invoking a destructive tool.

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?

Five sentences, front-loaded with the use case, then the safety semantics, the refusals, the cost/auth prerequisites, and the return-handling rule — each sentence carries distinct information with no filler.

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 destructive, metered, asynchronous-capable tool with no output schema, the description covers everything an agent needs: trigger, safety semantics, refusals, recursive caveat, sessionId/operationId prerequisites, metering, and what to do with returned IDs when the inline window is exceeded.

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%, so every one of the eight parameters is already documented, including recursive, expectedSha256, deadlineAt, and idempotencyKey; the baseline is therefore 3. The description reinforces the recursive rule for non-empty folders and the 'new operationId, don't resend' retry discipline, but adds little syntax or meaning the schema does not already carry.

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?

The description gives a specific verb and resource ('delete a file or folder in an approved project') and immediately clarifies the real semantics — the item goes to the OS trash and is never removed permanently. That is more precise than the name fs_delete alone. It does not explicitly contrast itself with fs_move or other siblings, which keeps it at 4 rather than 5.

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 states a clear trigger ('when the user asks to delete a file or folder') and enumerates hard exclusions: links, the project or workspace root, and Local Commander's own files are refused, and nothing is deleted where no trash exists. It stops short of naming an alternative tool for the cases it refuses, so it is clear context without a full when-not/alternative map.

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.