Skip to main content
Glama
shanghaitech-mail-mcp

shanghaitech-mail-mcp

列出邮箱文件夹

mail_list_folders

Lists all IMAP folders in a ShanghaiTech mailbox with total and unread message counts. Use it to confirm folder names before searching or filtering mail.

Instructions

列出上科大邮箱里所有 IMAP 文件夹(收件箱、已发送、草稿箱、垃圾箱、自定义分类),含每个文件夹的邮件总数与未读数。写检索前先调用它确认文件夹名。

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_list_folders"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/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 burden and does disclose the return shape: folder names plus message totals and unread counts. '列出' signals a read-only operation, though authentication prerequisites and whether hidden or system folders are included are not stated. Reasonably transparent for a zero-parameter enumeration 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?

Two sentences with zero waste: the first defines the resource and payload, the second supplies the usage rule. The core purpose is front-loaded and nothing is repeated.

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

Completeness5/5

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

With no parameters, no annotations, and no output schema, the description must explain what comes back, and it does: folder identity plus counts and unread numbers. Nothing an agent needs in order to call this correctly is missing.

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?

The tool takes no parameters, which is the clean baseline for top marks on this dimension. There is nothing for the description to disambiguate beyond noting that no filtering or scope argument is accepted.

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?

States a specific verb and resource (list all IMAP folders), enumerates the folder categories returned (inbox, sent, drafts, trash, custom), and specifies the payload (per-folder total and unread counts). This is enough for an agent to distinguish it from mail_search or mail_cleanup_report without opening any schema.

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?

Gives an explicit sequencing rule: call this before composing a search query, so folder names are confirmed. That is a concrete usage trigger rather than implied guidance. It stops short of naming which sibling to use when the folder names are already known, which is the only gap.

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