Skip to main content
Glama
weiting-tw

mcp-email

email_apply_rules

Scan an email folder and apply rules to move, mark, or delete messages. Supports substring, regex, or exact matching with case sensitivity. Use dry run to preview changes before executing.

Instructions

掃描 folder 後,依規則對信件做 move / mark / delete。預設:子字串、大小寫不敏感、first-match-wins(一封信只套第一條命中的規則)。可用 case_sensitive / match_mode 與每條規則的 match(substring|regex|exact) 調整。強烈建議先 dry_run=true 預覽命中數與前幾封,確認無誤再執行。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
rulesYes
folderNoINBOX
searchNo可選 IMAP search 先在 server 端縮小掃描範圍(大信箱建議用)ALL
dry_runNo
match_modeNofirst=一封只套第一條命中規則;all=套用所有命中規則(執行優先序 move>delete>mark)first
case_sensitiveNo比對是否區分大小寫(預設否)
Behavior4/5

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

Without annotations, the description effectively discloses key behavioral traits: defaults (substring, case-insensitive, first-match-wins), adjustable parameters (match_mode, case_sensitive), action precedence for 'all' mode, and the safety recommendation of dry_run. It does not mention rate limits or auth requirements, but covers the core operational behavior well.

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 a single concise paragraph that front-loads the purpose and then provides defaults, options, and a safety recommendation. Every sentence contributes useful information, though it could be slightly restructured for improved readability (e.g., bullet points for defaults).

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

Completeness3/5

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

Given the tool's complexity (7 parameters, rule-based logic) and no output schema, the description covers core functionality and recommendations but omits the return value/response format and details on error handling or the 'search' parameter usage. Some important context is missing for fully autonomous selection.

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 43%. The description adds context beyond the schema by explaining the default matching logic and the effect of match_mode and case_sensitive. However, it does not elaborate on all parameters (e.g., limit, folder, search) beyond what is in the schema, providing only moderate added value.

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 clearly states the tool scans a folder and applies rules to move, mark, or delete emails, with specific default behaviors (substring, case-insensitive, first-match-wins). It differentiates from sibling tools like email_mark, email_delete, and email_move_messages by focusing on batch rule application.

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?

The description provides usage guidance by strongly recommending dry_run=true for safety and explains default matching behavior. It does not explicitly state when to use this tool versus alternative sibling tools for individual actions, but the context of rule-based batch operations is implied.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/weiting-tw/mcp-email'

If you have feedback or need assistance with the MCP directory API, please join our Discord server