Skip to main content
Glama

delete

Delete any file or directory automatically. Detects file or directory type and removes it, including recursive deletion for directories.

Instructions

[RECOMMENDED - PRIMARY DELETION TOOL] DELETE any file or directory automatically. MAIN deletion tool - use for ALL deletion operations. Intelligently detects file/directory type and handles appropriately. Performs recursive deletion for directories. Keywords: delete, remove, erase, clean, rm, unlink. / [推荐 - 主要删除工具] 自动删除任何文件或目录。这是主要的删除工具 - 用于所有删除操作。智能检测文件/目录类型并适当处理。对目录执行递归删除。关键词:删除、移除、清理。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path of the file or directory to delete. Can be a single file, empty directory, or directory with contents. The tool automatically detects the type and deletes accordingly. Examples: 'temp.txt' (delete file), 'build/' (delete directory and all contents), 'old_config.json' (delete config file), 'node_modules/' (delete dependencies).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
successYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It clearly states the tool automatically detects file vs. directory type and performs recursive deletion for directories, which are key behavioral traits. It does not mention irreversibility or permission requirements, but the core destructive behavior is adequately disclosed for a delete operation.

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

Conciseness2/5

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

The description is redundant and verbose. It repeats the 'RECOMMENDED - PRIMARY DELETION TOOL' phrase, includes a long keywords list, and has both English and Chinese sections that restate the same information. The content could be condensed to a few sentences without losing meaning, making it less efficient for an agent to parse.

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 simple one-parameter delete tool with an output schema, the description covers the essential aspects: what it does, when to use it, and key behavioral details (auto-detection, recursive deletion). It lacks some safety warnings (e.g., permanence) but is otherwise complete enough for an agent to understand and invoke the tool correctly.

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?

The schema description coverage is 100%, and the input schema already provides a detailed description of the 'path' parameter, including examples and explanation. The tool description adds little beyond that, repeating the auto-detection concept but not introducing new parameter semantics. The baseline of 3 is appropriate given the schema handles parameter documentation well.

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 clearly identifies this as the primary deletion tool for any file or directory, with a specific verb ('DELETE'), explicit resource ('any file or directory'), and distinct positioning as the 'MAIN deletion tool' versus sibling tools like delete_file and delete_directory. It also states the auto-detection behavior, which differentiates it from type-specific deletion tools.

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?

The description explicitly says 'use for ALL deletion operations' and lists concrete use cases (remove files, directories, temp files, build artifacts, old backups), giving clear context for when to use this tool. However, it does not explicitly mention when not to use it or name alternative tools, falling short of a full when/when-not guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shibingli/mcp-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server