Skip to main content
Glama
BiteFoundry SharePoint MCP Server

BiteFoundry SharePoint MCP Server

delete_item

Deletes a OneDrive or SharePoint file or folder by path or item ID. Requires confirm: true to prevent accidental removal.

Instructions

Delete a OneDrive or SharePoint file or folder (requires confirm: true)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "confirm": "<confirm>"
    },
    "name": "delete_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo
siteNo
driveNo
confirmYes
item_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 disclosure burden for a destructive operation. It discloses the confirmation gate, which is genuinely useful, but says nothing about whether deletion is permanent or goes to a recycle bin, whether folders delete recursively, or what permissions are needed — all critical for a delete tool.

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?

One short sentence with the operation and the key prerequisite front-loaded; nothing is wasted. It is arguably over-compressed given the missing target-resolution and permanence details, but structurally it is clean.

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 five-parameter tool with no annotations and no output schema, the description omits too much: target addressing, deletion permanence, recursive folder behavior, and error/return expectations. An agent could call it only by guessing at the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate. It explains only 'confirm'; path, site, drive, and item_id are left with no meaning, and there is no hint about which combination identifies a target (path vs. item_id, when site/drive are needed).

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?

States a specific verb (delete) and resource (OneDrive or SharePoint file or folder), which is enough for an agent to distinguish it from siblings like move_or_rename_item or download_file. It stops short of explicitly naming any alternative, so it doesn't reach 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 only guidance is the embedded prerequisite 'requires confirm: true', which implies a deliberate confirmation step before destructive action. There is no statement of when to prefer this over alternatives, no note on restoring or recovering a deleted item, and no prerequisite about permissions or target resolution.

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