delete_file
删除一个文件。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | 文件 ID |
删除一个文件。
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | 文件 ID |
Changes observed during successful MCP inspections.
Output schema / (root)Previous value: -{
- "properties": {
- "result": {
- "additionalProperties": true,
- "title": "Result",
- "type": "object"
- }
- },
- "required": [
- "result"
- ],
- "title": "delete_fileOutput",
- "type": "object"
-}New value: +nullDoes the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the entire burden of behavioral disclosure. It merely states 'delete a file' without mentioning irreversibility, permission requirements, trash behavior, or side effects. This is a critical gap for a mutation tool, as the agent cannot assess the consequences of invocation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single short sentence, making it extremely concise and front-loaded with the core purpose. However, it omits essential behavioral context, so while there is no wasted text, the brevity borders on under-specification.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple delete operation, the description is underspecified: it lacks information about what happens to the file (e.g., permanent vs. trash), required permissions, and how it differs from bulk delete tools. The presence of sibling tools like delete_files and delete_folder further highlights the need for clearer scoping. Without annotations or output schema, this is insufficient for safe invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema fully documents the single parameter file_id with a Chinese description '文件 ID', achieving 100% coverage. The tool description adds no additional parameter-level detail, so the schema already provides the necessary semantics. Baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description '删除一个文件。' clearly identifies the action (delete) and resource (file), but it does not explicitly distinguish this from sibling tools like delete_files (plural) or delete_folder. The singular aspect is implied by the name and description, but not stated, so it falls short of full differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus alternatives such as delete_files or delete_folder. The description only states the basic action, leaving the agent to infer usage from the tool name alone. No exclusions or alternative recommendations are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.