Skip to main content
Glama
xtawa

mcp_file_manager

by xtawa

删除文件

delete_file
DestructiveIdempotent

Immediately delete an uploaded file and its metadata using its identifier code, without waiting for the 24-hour expiration. This action is irreversible.

Instructions

立即删除指定标识码的文件与元数据,不等到期。操作不可恢复。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes上传时返回的标识码,大小写与连字符都可以,例如 7K2QF-9XM4T 或 7k2qf9xm4t
Behavior4/5

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

Beyond annotations (destructiveHint=true, idempotentHint=true), the description adds that both file and metadata are deleted immediately and that the operation is irreversible. This provides context about scope and immediacy.

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?

Two short sentences in Chinese convey the action, target, timing, and irreversibility with zero redundant content. Information is front-loaded.

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 destructive tool with good annotations and full schema coverage, the description is adequate. It clarifies what is deleted and the immediate nature, though it doesn't describe error behavior or return values (no output schema).

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 input schema fully documents the 'code' parameter with details on case-insensitivity and examples. The description does not add further parameter details, so baseline 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 action: 'immediately delete the file and metadata with the specified ID code.' It distinguishes from siblings like extend_expiry (which preserves files) and sweep_expired (bulk deletion of expired files), and explicitly mentions it is irreversible.

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

Usage Guidelines3/5

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

The description implies use when you need to delete a file before its natural expiration ('不等到期'), but does not explicitly contrast with alternatives like extend_expiry or sweep_expired. Sibling list is provided but not referenced.

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/xtawa/mcp_file_manager'

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