Skip to main content
Glama

delete_file

Delete a specific file by path. Works only on files, not directories. If unsure whether the path is a file or directory, use the delete tool.

Instructions

Delete a specific file. Only works on files, not directories. Use 'delete' tool if you're unsure whether the path is a file or directory. / 删除指定的文件。仅用于删除文件,不能删除目录。如果不确定是文件还是目录,请使用 delete 工具。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe path of the file to delete. Must be a file, not a directory.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
successYes
Behavior3/5

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

With no annotations, the description discloses a useful behavioral constraint (files only) but omits mentioning that deletion is permanent or irreversible, and does not address permissions or side effects, leaving a moderate transparency gap for a destructive operation.

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 concise and front-loaded with the main action. The bilingual repetition is a minor addition but does not introduce redundancy for the intended audience, and every sentence serves a clear purpose.

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 simple single-parameter deletion tool with an output schema available, the description adequately covers the purpose, the file-only constraint, and the alternative tool, making it contextually complete without needing to explain return values.

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 already provides a complete description and examples for the 'path' parameter, including the file-only restriction. The tool description repeats this without adding new parameter semantics, so a baseline score of 3 is appropriate.

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 states the tool's purpose with a specific verb and resource ('Delete a specific file'), and explicitly differentiates it from siblings by noting it only works on files, not directories, and directs users to the 'delete' tool for uncertain cases.

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?

The description provides explicit when-to-use guidance by stating 'Only works on files, not directories' and naming the 'delete' tool as an alternative when the path type is unknown, making the decision between tools clear.

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