Skip to main content
Glama
LeeFlannery

imap-mcp

by LeeFlannery

list_emails

List recent emails from your IMAP accounts, newest first. Filter by date, unread status, or specific account, including merged results across accounts.

Instructions

List recent emails, newest first.

account: account key (see list_accounts). Omit to merge ALL enabled accounts.
since: ISO date (YYYY-MM-DD) lower bound, optional.
unread_only: only unseen messages.
limit: max rows (per account when merging).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
sinceNo
accountNo
unread_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals important behaviors: newest-first ordering, merging of all enabled accounts when account is omitted, per-account limit handling, unread_only filtering, and ISO date lower bound for 'since'. This goes beyond a minimal description, though it does not cover edge cases like pagination or error handling.

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 highly concise and well-structured: a one-sentence purpose followed by a parameter list. Each line is informative and necessary, with no redundant filler. The front-loaded purpose makes the tool's intent immediately clear.

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?

For a list tool with an existing output schema, the description covers key behavioral aspects: sorting order, account scoping, and filtering semantics. It also explains the merging behavior, which is crucial for understanding results. Minor gaps include a precise definition of 'recent' and explicit handling of pagination, but the output schema and limit parameter mitigate this.

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

Parameters5/5

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

The input schema has zero descriptions (0% coverage), so the description fully compensates by explaining every parameter: account key source and merging behavior, since as ISO date lower bound, unread_only as unseen messages, and limit as max rows per account when merging. This adds significant meaning beyond the raw schema types and defaults.

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?

The description clearly states the tool's function: 'List recent emails, newest first.' The verb 'list' and resource 'emails' are specific, and the sorting order adds clarity. It is distinct from sibling tools like search_emails (which implies filtering/search) and get_email (which implies fetching a single email).

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 description provides usage context through parameter explanations, including referencing list_accounts for the account key. However, it does not explicitly state when to use this tool over search_emails or get_email, nor does it mention exclusions. The usage guidance is implied rather than explicitly stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LeeFlannery/imap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server