Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

onedrive-delete

Delete a OneDrive file or folder by specifying its path or item ID to remove unwanted cloud storage items.

Instructions

Delete a file or folder from OneDrive

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "onedrive-delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath to the item (alternative to itemId)
itemIdNoID of the item to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing beyond the verb. It does not say whether deletion is permanent or goes to a recycle bin, whether folder deletion is recursive, what permissions are required, or how errors on missing items are reported — significant gaps for a destructive mutation.

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

Conciseness4/5

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

A single front-loaded sentence with no wasted wording. Its brevity is appropriate, though the space it saves is not spent on the behavioral detail a destructive tool needs.

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?

For a destructive tool with no annotations and no output schema, the definition should explain irreversibility, permission requirements, and folder recursion behavior. None of that is present, so an agent cannot predict the consequences of calling it.

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%, so both path and itemId are already documented in the schema. The description adds no meaning about which identifier takes precedence, path format, or whether they are mutually exclusive, leaving it at the baseline for a well-covered schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (delete) and resource (file or folder in OneDrive), so an agent can distinguish it from delete-email and delete-event by name and resource. It does not explicitly compare itself to any sibling or clarify scope limits, so it stops short of a 5.

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 intent (remove an item from OneDrive) is implied clearly enough to select the tool over onedrive-list or onedrive-upload, but there is no guidance on when to prefer it, prerequisites, or whether itemId should be used instead of path. No exclusions or alternatives are named.

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