Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

按规则自动清理(幂等,可定时跑)

mail_autoclean

Automatically moves junk mail to Trash using preset rules while leaving normal messages untouched. Runs as a dry-run report by default and only performs recoverable moves when disabled.

Instructions

按预设规则自动把垃圾邮件移入垃圾箱,不动任何正常邮件。默认 dry_run=true 只报告;dry_run=false 才真的移动。规则一:Twitch 直播推送,发出超过 10 小时即清。规则二:掠夺性期刊/期刊约稿与「代写代发」类骚扰(IntechOpen 等),见到即清,不看年龄。规则三:同一发件人在 24 小时内重复推送的直播/提醒类通知,只留最新一封。所有移动都进 Trash(可恢复),不会永久删除。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mail_autoclean"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNo要清理的文件夹,默认 INBOX
dry_runNo默认 true 只出报告;false 才执行移动
twitch_max_age_hoursNoTwitch 推送的保留时长(小时),默认 10

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden. It clearly discloses the safe default dry_run=true, the recoverable Trash-only outcome with no permanent deletion, and the exact cleanup rules including age thresholds and duplicate handling. It does not cover permissions, report contents, or rate/concurrency behavior, so it is strong but not exhaustive.

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?

The definition front-loads the purpose and safety behavior, then lists the three cleanup rules compactly. Each rule is necessary to understand what gets moved, and no sentence is redundant. The structure is efficient for a rule-based cleanup tool.

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 an auto-cleanup tool with no annotations and no output schema, the description covers scope, safe defaults, recoverability, and rule criteria well. It leaves the dry_run report's contents and any scheduling or permission details unstated, which are minor but real gaps.

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 all three parameters already have documented defaults and meanings in the schema. The description reinforces dry_run and Twitch age semantics but adds little beyond the schema's own wording and never explains the folder parameter's role. 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 states a specific verb and resource: automatically moving spam into Trash under preset rules while leaving normal mail untouched. It distinguishes the operation from permanent deletion and from report-only behavior via dry_run, though it does not explicitly name sibling tools such as mail_cleanup_report or mail_delete. The purpose is clear enough for selection.

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 implied through the preset rules, the dry_run default, and the scope constraint that normal mail is untouched. However, the description does not explicitly say when to use this tool instead of mail_delete, mail_move, or mail_cleanup_report, nor does it state prerequisites or scheduling requirements. This is adequate but leaves routing to inference.

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