Skip to main content
Glama
seandkendall

productivity-mcp

by seandkendall

list_emails

Retrieve email messages from any folder with filters for unread, recipient domain, query, or time range.

Instructions

List messages in a folder.

Args: account: Account label (use list_email_accounts to see options). If omitted, the first configured account is used. folder: Folder (IMAP) or label (Gmail). Default INBOX. limit: Max number of messages to return. Default 25. query: Free-text search. For Gmail, pass native Gmail operators (e.g. from:@example.com). For IMAP this becomes a TEXT search. unread_only: If true, only return unread messages. recipients: Filter to messages delivered to (or Cc'd / Bcc'd to) any of these addresses OR domains. Each entry may be a full address (sean@nasource.com) or a bare domain (nasource.com). Use this to answer questions like "who emails me at my alias domains?" — pass e.g. ["nasource.com", "seankendall.com"]. OR-combined. since_days: Only return messages newer than this many days. STRONGLY recommended when using recipients on a large mailbox — a full- mailbox recipient search can take minutes on accounts with tens of thousands of messages. For "last 30 days" questions pass 30.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNo
folderNoINBOX
limitNo
queryNo
unread_onlyNo
recipientsNo
since_daysNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full behavioral disclosure burden. It explains that query uses native Gmail operators or IMAP TEXT search, that recipients is OR-combined, and warns about performance for large mailboxes with since_days. This is good transparency, though it does not specify the return format (but output schema exists).

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 brief but comprehensive, with a clean Args list structure. Every sentence adds value—no fluff. It is front-loaded with the main purpose and parameter explanations are succinct.

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?

Given 7 parameters, no annotations, and an output schema present, the description covers all necessary context: parameter meanings, defaults, usage recommendations, and cross-tool references (list_email_accounts). It is complete for making informed tool selection.

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 no descriptions (0% coverage), making the description essential. It adds detailed meaning for all 7 parameters: account says to use list_email_accounts, recipients explains OR-combined addresses/domains, since_days warns about performance. This goes well beyond the schema titles.

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 starts with 'List messages in a folder.' which clearly states the core function with a specific verb and resource. It distinguishes itself from siblings like read_email (reads a single email) and search_emails_by_sender (searches by sender), making its purpose immediately clear.

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?

The description provides explicit usage guidance for parameters like account (use list_email_accounts), default INBOX, and a strong recommendation for since_days with recipient queries. However, it does not explicitly state when to use this tool versus alternatives (e.g., search_emails_by_sender), missing some exclusion logic.

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/seandkendall/productivity-mcp'

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