Skip to main content
Glama
SeraFxy

netease-mail-mcp

by SeraFxy

search_messages

Read-only

Find emails in NetEase mailboxes by sender, recipient, subject, date, folder, or read/flagged status, returning message IDs and header details newest-first.

Instructions

Search or list messages newest-first. Returns ids plus date/from/to/subject/flags. Date and unread/flagged filters run on the server; query/from/to/subject match headers locally over at most max_scan candidates (truncated=true means more may exist). Message bodies are never searched.

Input Schema

NameRequiredDescriptionDefault
toNoSubstring of a To/Cc name/address.
fromNoSubstring of the sender's display name or address. Display names are set by the sender and can imitate an address; check the address itself.
limitNoMax results (≤100).
queryNoWords that must all appear in From/To/Cc/Subject (case-insensitive substring). Bodies are not searchable.
sinceNoYYYY-MM-DD, inclusive.
beforeNoYYYY-MM-DD, exclusive.
folderNoFolder name/role ("INBOX", "已发送", "sent"), a list, or "all" (every folder except Junk/Trash/病毒文件夹).INBOX
unreadNotrue = unread only, false = read only
accountNoEmail address; omit for the default (first) account.
flaggedNotrue = flagged (starred) only
subjectNoSubstring of the subject.
max_scanNoMax candidates to check client-side (≤5000).
has_attachmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses important behavior: returned fields, newest-first ordering, server-side date/unread/flagged filtering, local header matching over max_scan candidates, truncation semantics, and the fact that message bodies are never searched. These details materially affect how an agent should invoke and interpret the tool.

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 description is compact and front-loaded: purpose first, then return shape, filtering mechanics, truncation, and the body-search limitation. Every sentence adds useful information without redundancy.

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?

Given 13 parameters and no output schema, the description is largely complete: it states the return fields and explains the key filtering and truncation behavior. Minor details such as folder defaults and account handling are left to the schema, which is reasonable given the high schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high at 92%, so the schema already documents most parameters. The description still adds cross-parameter meaning by explaining which filters run server-side, which run locally over max_scan, and why truncated results may occur.

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 uses a specific verb and resource: "Search or list messages" and specifies newest-first ordering. It is clear what the tool does, but it does not explicitly distinguish itself from siblings such as read_message or list_folders.

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 by "Search or list messages" and the note that bodies are never searched, but the description does not explicitly say when to use this tool versus alternatives like read_message or get_thread. The server-side versus local filtering distinction helps, but is not framed as usage guidance.

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