Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Delete file or folder

delete_path
DestructiveIdempotent

Permanently delete a file, symbolic link, or folder from local or remote backends. Use recursive=true to remove non-empty folders; deletion is irreversible and bypasses trash.

Instructions

Permanently delete a file, symbolic link or folder. Use when: something must go for good. Instead: move_path to move it aside. Behavior: destructive, irreversible (no trash). A repeat fails with 'No such file'. A non-empty folder needs recursive=true; a failure half-way leaves the rest. A symlink is removed, not its target. Time limit: 30 s. Returns: {ok: true}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe file, link or folder to delete (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
recursiveNotrue: also delete everything inside a folder. false: a non-empty folder fails.

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations, it discloses irreversibility/no trash, repeat failure, recursive requirement for non-empty folders, partial-failure behavior, symlink-target behavior, and a 30-second time limit. These are operationally important details not encoded in the annotations.

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?

The description is front-loaded and segmented into use, alternative, behavior, and returns; every line carries decision-relevant information. There is little or 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 filesystem deletion tool, it covers irreversible behavior, recursion, partial failure, symlinks, repeat behavior, time limit, and naming an alternative; an output schema already exists, so return detail need not be expanded.

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 the schema already explains path, backend, path_b64, and recursive. The description adds only a small operational restatement about recursive for non-empty folders and does not add parameter syntax beyond the schema.

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 first sentence gives a specific verb and resources ('Permanently delete a file, symbolic link or folder'), and the 'Instead' line explicitly names move_path as a different operation. This is enough to identify the tool's purpose among siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states when to use ('something must go for good') and gives a concrete alternative ('move_path to move it aside'). That supplies both selection guidance and the main exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.