Skip to main content
Glama

delete_file

Permanently remove files from SharePoint document libraries using the server-relative URL to manage storage and maintain organized content.

Instructions

Permanently delete a file from a document library.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serverRelativeUrlYesServer-relative URL of the file to delete.
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states 'permanently delete,' which implies a destructive, irreversible action, but doesn't mention critical details like required authentication, potential side effects (e.g., impact on linked items), error conditions, or confirmation prompts. For a destructive tool with zero annotation coverage, this is a significant gap.

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 a single, efficient sentence with zero wasted words. It is front-loaded with the core action ('permanently delete') and resource, making it immediately understandable. Every word earns its place by contributing essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given this is a destructive tool with no annotations and no output schema, the description is incomplete. It lacks information on permissions, irreversible consequences, error handling, or what happens upon success (e.g., no return value confirmation). For a high-stakes operation like file deletion, more context is needed to use it safely and effectively.

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%, with the single parameter 'serverRelativeUrl' fully documented in the schema. The description adds no parameter-specific information beyond what the schema provides, such as examples or format constraints. Baseline 3 is appropriate when the schema does all the parameter documentation work.

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 specific action ('permanently delete') and target resource ('a file from a document library'), distinguishing it from siblings like delete_item, delete_list, or delete_column which target different resources. It uses precise language that leaves no ambiguity about what the tool does.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. While it mentions 'permanently delete,' it doesn't specify prerequisites (e.g., permissions needed), when not to use it (e.g., for temporary deletion), or direct alternatives like delete_item for non-file resources. The agent must infer usage from the tool name alone.

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/LukasSevcik/sharepoint-mcp'

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