Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

标记邮件状态

mail_mark

Mark emails as read, unread, starred, or unstarred, including batch changes via UID lists and an optional folder target.

Instructions

给邮件加/去标记:已读、未读、星标。批量操作传 uids 数组。

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>",
      "flag": "<flag>"
    },
    "name": "mail_mark"
  }
}

Input Schema

NameRequiredDescriptionDefault
flagYes要做的标记动作
uidsYes邮件 uid 列表
folderNo文件夹,默认 INBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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. It conveys that flags can be added AND removed (reversible mutation) via 加/去, but says nothing about required write permissions, idempotency, whether marking unseen affects server state, or what happens with invalid uids.

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?

Two short, front-loaded sentences with zero filler: the capability first, the batch mechanics second. Every clause earns its place.

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?

For a 3-parameter mutation tool with no annotations and no output schema, the description covers the core action but leaves out permission requirements, folder scoping semantics, and any indication of the response (e.g., count of affected messages). Adequate but with clear 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%, so the baseline is 3. The description reinforces that uids drives batch behavior and implicitly maps 已读/未读/星标 onto the seen/unseen/flagged enum, but it never mentions the folder parameter or its INBOX default beyond what the schema already documents.

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?

States a specific verb (加/去标记, add/remove flags) on a specific resource (邮件, mail) and enumerates the flag kinds (已读、未读、星标). An agent can distinguish this from mail_move/mail_delete/mail_read, though no sibling is named explicitly.

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: use it to change read/star state, and pass uids for batch. There is no explicit when-to-use vs. when-not guidance (e.g., versus mail_read, which may auto-mark as seen) and no stated prerequisites.

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