Skip to main content
Glama
Mail-MCP

Mail-MCP

by Rixtayz

Delete messages

mail_delete

Move up to 500 Outlook messages to Deleted Items for recoverable removal. Messages stay restorable and are not permanently deleted.

Instructions

Move one or more messages (up to 500 ids) to Deleted Items, where the user can restore them from Outlook (or with mail_search folder=deleteditems then mail_move; their id changes). Never deletes permanently: for that, use mail_purge, and only when the user explicitly asks for permanent deletion.

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": {
      "ids": "<ids>"
    },
    "name": "mail_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesMessage ids (1 to 500)

Output Schema

NameRequiredDescriptionDefault
movedNo
failedYes
succeededYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.2
    • removedInput schema / properties / ids / items / minLength
      Removed value: -1
    • addedInput schema / properties / ids / items / pattern
      Added value: +"^[A-Za-z0-9_=+/-]{16,512}$"
    • removedInput schema / properties / permanent
      Removed value: -{
      -  "default": false,
      -  "description": "true = permanent deletion (irreversible). Default: Deleted Items.",
      -  "type": "boolean"
      -}
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that messages are moved to Deleted Items and remain restorable, that up to 500 ids are accepted, and that the id changes after restore. This adds meaningful behavioral context for a reversible 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?

The description is front-loaded with the core action and stays to two sentences. The parenthetical restore instructions are dense but directly useful for understanding recoverability.

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

Completeness5/5

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

The definition covers the mutation's effect, recoverability, alternative permanent-deletion tool, and id-change behavior. With an output schema and complete parameter documentation present, nothing essential is missing for correct invocation.

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 coverage is 100%, and the schema already documents the ids parameter with its 1-to-500 range. The description repeats the max of 500 ids but does not add format or syntax details beyond what the schema provides.

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 gives a specific verb and resource: move one or more messages to Deleted Items. It explicitly distinguishes this from permanent deletion by naming mail_purge, so an agent can distinguish it from the sibling tool without opening its schema.

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

Usage Guidelines5/5

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

It states when to use this tool versus mail_purge, including that mail_purge should be used only when the user explicitly asks for permanent deletion. It also describes the restore path via Outlook or mail_search plus mail_move, giving clear alternative behavior.

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