Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

delete-email

Delete a specified email by moving it to Deleted Items, or use permanent=true to permanently remove it when needed.

Instructions

Deletes an email by moving it to Deleted Items (trash). Use permanent=true to hard delete.

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": {
      "id": "<id>"
    },
    "name": "delete-email"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the email to delete
permanentNoIf true, permanently delete the email instead of moving to Deleted Items. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does the most important part of the job: it discloses that the default is a reversible move to Deleted Items and that 'permanent=true' is a hard delete, so the agent understands what is destroyed and that there is a safe mode. It still omits permission requirements, behavior on an unknown id, and whether the call is idempotent, which keeps it out of 5 territory.

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, no redundancy, and the destructive alternative is front-loaded as a usage instruction rather than buried. Nothing in the text could be removed without losing information.

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 two-parameter delete tool with complete schema descriptions and no output schema, the description covers the essential behavior and the destructive-mode switch. The only real gap is error handling (deleting a nonexistent or already-deleted email), which is minor at this complexity level.

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 the 'id' and 'permanent' parameters are already fully documented in the schema, including the default of false. The description restates the permanent/soft-delete semantics in prose but adds no new meaning such as id format, retention window, or what counts as a valid id — the baseline 3 for a fully documented 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 gives a specific verb and resource ('Deletes an email') plus the mechanism ('by moving it to Deleted Items'), which immediately separates it from the event/OneDrive delete siblings by resource type. It stops short of explicitly naming or contrasting any alternative tool, so it lands just below the top mark.

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?

Usage is only implied by the verb: it tells the agent what happens when 'permanent=true' is set, which is parameter guidance rather than when-to-use-it guidance. There is no statement about prerequisites, no guidance on when to prefer a different tool (e.g., move-emails for bulk relocation), and no exclusions.

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