Skip to main content
Glama
codefuturist

Email MCP Server

by codefuturist

search_emails

Read-only

Search emails by keyword across subject, sender, and body, or filter by recipient, attachments, size, and reply status without a keyword.

Instructions

Search emails by keyword across subject, sender, and body. Omit query (or pass an empty string) to use it as a pure filter — e.g. find all emails with attachments from a specific recipient without a keyword. Supports additional filters for recipient, attachments, size, and reply status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoFilter by recipient address
pageNoPage number
queryNoSearch keyword (omit or leave empty to use filters only)
accountYesAccount name from list_accounts
mailboxNoMailbox path (default: INBOX)INBOX
answeredNoFilter: true=replied, false=not replied
pageSizeNoResults per page
larger_thanNoMinimum email size in KB
smaller_thanNoMaximum email size in KB
has_attachmentNoFilter: true=has attachments, false=no attachments
Behavior3/5

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

The description adds context about the pure filter capability and supported filter fields. Annotations already indicate readOnly and non-destructive behavior, so no contradiction. No additional behavioral traits like rate limits or return format are disclosed.

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 that are front-loaded with the primary action and include a concrete example. Every sentence adds value with no waste.

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?

The description explains the search mechanism and filter usage well. While it does not cover pagination or response format, the input schema handles those details. Overall adequate for a search tool with good annotations.

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 baseline is 3. The description repeats some parameter info (e.g., omit query for filters) and gives an example, but adds limited new meaning beyond the schema descriptions.

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?

The description clearly states the tool searches emails by keyword across subject, sender, and body. It includes an example of using it as a pure filter, which helps distinguish from a basic list tool like list_emails, though it does not explicitly name siblings.

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 gives guidance on when to use the tool (for keyword search or filter-only queries) and provides an example. However, it does not mention when to use alternatives or when not to use this tool.

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/codefuturist/email-mcp'

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