Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

移动邮件到其他文件夹

mail_move

Moves selected email UIDs from a source folder to a target folder, enabling archiving, custom categorization, or cleanup by moving messages to trash.

Instructions

把邮件从一个文件夹移动到另一个(例如归档到自定义分类、移到垃圾箱)。

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>",
      "to_folder": "<to_folder>"
    },
    "name": "mail_move"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidsYes邮件 uid 列表
folderNo源文件夹,默认 INBOX
to_folderYes目标文件夹名,可用 mail_list_folders 查

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/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, yet it only restates the move action. It does not say whether the move is reversible, whether messages are copied or removed from the source, whether a batch of uids is moved atomically, or what happens if to_folder does not exist.

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?

A single front-loaded sentence with the core action first and examples second; nothing is redundant. It is efficient, though its brevity is also where the behavioral gaps come from.

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

Completeness2/5

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

This is a batch mutation tool with three parameters and no annotations or output schema, so the description should explain side effects, failure modes, and folder prerequisites. It covers only the bare action, leaving an agent unable to predict what happens on a missing folder or a partial-failure uid list.

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 explains uids, folder (default INBOX), and to_folder (discoverable via mail_list_folders). The description adds no meaning beyond that, so the baseline of 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 ('把邮件从一个文件夹移动到另一个') and adds two concrete examples of the effect (archiving to a custom category, moving to trash). It does not name a sibling such as mail_delete, which matters because '移到垃圾箱' overlaps conceptually with a delete tool, leaving some ambiguity in intent.

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?

The parenthetical examples imply when to use it (reorganizing mail, discarding mail), but there is no explicit guidance on when NOT to use it versus mail_delete or mail_autoclean, and no stated prerequisite that the target folder must already exist.

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