Skip to main content
Glama
mail-mcp

mail-mcp

by honest-magic

list_emails

Read-only

Retrieve recent emails from any IMAP folder, including Gmail, Outlook, and custom domains. Use header-only mode to scan subjects, senders, dates, and flags without downloading message bodies.

Instructions

List recent emails via IMAP from any folder — works with Gmail, Outlook, and custom domains. Use headerOnly=true for fast inbox scanning that returns only subject, sender, date, and flags without downloading message bodies.

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": {
      "accountId": "<accountId>"
    },
    "name": "list_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoThe number of emails to retrieve (default: 10)
folderNoThe folder to list emails from (default: INBOX)
offsetNoNumber of messages to skip from the newest (for pagination, default: 0)
accountIdYesThe ID of the account to use
headerOnlyNoWhen true, skip body download and return only headers (subject, from, date, flags). Much faster for large mailboxes. snippet will be empty. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a safe read operation, yet the description adds real value: multi-provider compatibility and the fact that headerOnly avoids downloading bodies while returning only subject, sender, date, and flags. That tells an agent about cost/latency tradeoffs that annotations cannot express. It omits return shape and pagination behavior, but the core behavioral picture is solid.

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?

Two tight sentences with the capability stated first and the performance tip second; no filler. Slightly denser formatting (e.g., a bullet for the headerOnly mode) could improve scannability, but nothing is wasted.

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 five-parameter read tool with no output schema, the description never indicates what a returned email entry contains (id, subject, snippet, etc.), which an agent needs to chain into read_email or get_attachment. Safety and parameter behavior are adequately covered, so this is a real but not severe gap.

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 coverage is 100%, so all five parameters are already documented in the schema. The description's explanation of headerOnly largely restates the schema text ('skip body download and return only headers... snippet will be empty'). No additional syntax, default, or interaction detail is added beyond the schema baseline.

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 and resource (list recent emails) plus protocol (IMAP) and provider coverage (Gmail, Outlook, custom domains). It is distinguishable from search_emails by the word 'list' and the 'recent' framing, but it never explicitly contrasts the two, so it stops short of a 5.

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 second sentence gives a clear usage cue for one mode ('Use headerOnly=true for fast inbox scanning'), which is genuinely helpful. However, it offers no guidance on when to prefer this tool over search_emails for finding messages, nor any prerequisites or exclusions.

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