Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

delete_messages

Move messages to the Trash folder to delete them while keeping them recoverable; nothing is permanently erased. Messages already in Trash cannot be deleted further.

Instructions

Delete messages by moving them to the Trash folder, where they can be recovered. Nothing is erased. Messages already in Trash cannot be deleted further.

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": {
      "folder": "<folder>",
      "uidvalidity": "<uidvalidity>",
      "uids": "<uids>"
    },
    "name": "delete_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidsYesuids from search_messages, all from this one folder.
folderYesFolder name exactly as list_folders or search_messages returned it.
uidvalidityYesThe uidvalidity that search_messages returned for this folder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

The annotations declare destructiveHint=false but give no reason; the description supplies that reason explicitly ("Nothing is erased", messages are recoverable from Trash), which is exactly the extra context the annotations cannot convey. It also discloses an edge-case behavior (no-op/error for items already in Trash), consistent with the non-idempotent, non-destructive hints.

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?

Three short sentences with no filler, and the most consequential fact — that the operation is reversible — is stated up front before the edge-case caveat.

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 three-parameter, fully schema-documented mutation tool with no output schema, the description covers the essential behavior: mechanism, reversibility, and one exclusion. It omits what happens on partial failure or an invalid uidvalidity, which would matter for a bulk uid operation.

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% and each of the three required parameters is documented in-schema (uids from search_messages, folder name as returned by list_folders, uidvalidity from search_messages). The description adds no additional parameter meaning such as batching limits or failure behavior for stale uidvalidity, so the baseline 3 applies.

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 ("Delete messages") and immediately explains the mechanism ("moving them to the Trash folder"), so the agent knows this is a soft delete rather than an expunge. It does not explicitly distinguish itself from the sibling move_messages, which could also target Trash, so the boundary is left to inference.

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

Usage Guidelines4/5

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

It supplies a concrete negative condition — messages already in Trash cannot be deleted further — which prevents a wasted call. It stops short of naming alternatives (e.g. move_messages for non-Trash destinations) or stating prerequisites such as needing uids from the same folder, so it is clear context without full routing guidance.

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