email-triage
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| EMAIL_IMAP_SSL | Yes | Set to 1 to use SSL/TLS for the IMAP connection. | |
| EMAIL_IMAP_HOST | Yes | IMAP server hostname (e.g., imap.exmail.qq.com). | |
| EMAIL_IMAP_PORT | Yes | IMAP server port (e.g., 993). | |
| EMAIL_IMAP_USER | Yes | IMAP username (full email address, e.g., your-id@smail.nju.edu.cn). | |
| EMAIL_TRIAGE_MODEL | Yes | Model ID to use for classification (e.g., qwen3.8-flash-next-iq3_s). | |
| EMAIL_IMAP_PASSWORD | No | IMAP password provided directly. Do not set if EMAIL_IMAP_PASSWORD_FILE is used. | |
| EMAIL_TRIAGE_CONFIG | Yes | Absolute path to the configuration file (e.g., configs/nju-inbox.json). | |
| EMAIL_TRIAGE_BASE_URL | Yes | Base URL of the Qwen/Strata model service (e.g., http://127.0.0.1:18081/v1). | |
| EMAIL_TRIAGE_RUN_ROOT | Yes | Absolute path to the root directory where run outputs are stored. | |
| EMAIL_IMAP_PASSWORD_FILE | No | Absolute path to a file whose first line contains the IMAP client-specific password. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_categoriesA | 返回当前配置里允许的邮件类别名称与说明。不读取任何邮件。 |
| classify_jsonlA | 对本地 JSONL 样本做只读分类,返回每封的主题标签、类别、理由与耗时。只读:不修改任何邮件状态。 |
| classify_imapA | 从 IMAP 邮箱只读拉取最近若干封邮件并分类。仅使用 EXAMINE 与 BODY.PEEK,不会把邮件标记为已读,也不会移动或删除。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
The three tools have clearly distinct purposes: listing allowed categories, classifying local JSONL samples, and classifying IMAP messages. The local-vs-IMAP distinction is explicit in both names and descriptions, so an agent can easily choose the right tool.
All tool names use consistent snake_case verb_noun form: list_categories, classify_jsonl, classify_imap. The convention is predictable and readable.
Three tools is a minimal but reasonable surface for a read-only email classification server. Each tool earns its place, though the set is thin for the broader notion of email triage.
The server covers category listing and read-only classification from two input sources, but lacks operations to act on triage results, such as applying categories or labels. There also is no category management or broader email retrieval beyond recent IMAP messages, leaving notable gaps for full email triage.