Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

删除邮件(默认移入垃圾箱,可恢复)

mail_delete

Deletes mailbox messages by UID, moving them to Trash for recovery by default; set permanent=true to expunge irrevocably. Use for targeted or bulk cleanup after confirming a cleanup report.

Instructions

删除邮件。默认行为是「移入垃圾箱」,可恢复、可再找回;只有 permanent=true 才真正 EXPUNGE 彻底删掉(不可恢复)。批量清理请先用 mail_cleanup_report 出清单、确认后再删。

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

Input Schema

NameRequiredDescriptionDefault
uidsYes邮件 uid 列表
folderNo所在文件夹,默认 INBOX
permanentNotrue = 彻底删除(不可恢复)。默认 false,只移入垃圾箱。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 burden and does it well: it discloses that the default is recoverable (move to trash) and that only permanent=true triggers an irreversible EXPUNGE, naming the underlying mechanism. It does not cover secondary behavior such as what happens to unknown uids or partial failures in a batch.

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, front-loaded with the action and its default behavior, then the irreversible flag, then the batch workflow. Every sentence carries distinct information and nothing is padded.

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?

A destructive-write tool with no annotations and no output schema; the description compensates by fully spelling out the reversibility contract and a safe batch workflow. It could say a bit more about batch scale limits or failure handling, but an agent has enough to call it safely.

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 the schema already defines uids, folder (default INBOX), and permanent. The description restates the permanent=true versus default-trash meaning but adds no syntax, limits, or cross-field constraints beyond what the schema provides. Baseline 3 is appropriate.

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?

States a specific verb and resource ("删除邮件") and immediately disambiguates the two modes it supports: default move-to-trash versus permanent=true EXPUNGE. An agent can tell exactly what the call does without opening the schema, and is pointed at mail_cleanup_report for the batch-listing case.

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?

Gives concrete usage guidance for the risky path: run mail_cleanup_report first to produce a list, confirm, then delete. This is a real when-to-use rule rather than an implied one. It stops short of naming when NOT to use it (e.g. use mail_move instead when you only want to relocate within folders).

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