Skip to main content
Glama
as-j

Fastmail MCP Server

by as-j

advanced_search

Read-onlyIdempotent

Search Fastmail email with structured filters by sender, recipient, subject, unread state, attachments, mailbox, and date range. Supports pagination to browse large result sets.

Instructions

Search Fastmail email with structured filters such as sender, recipient, subject, unread state, attachments, mailbox, and date range in paginated form. Use when the user asks for something like "find the latest message from Alice", "show unread invoices with attachments", or "find messages from last week". Returns items, total, has_more, and next_offset so the agent can refine or continue the search without consuming excess context. Do not use for simple inbox checks; use get_recent_emails. Do not use when you already have an emailId; use get_email.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoText to search for in subject/body
fromNoFilter by sender email
toNoFilter by recipient email
subjectNoFilter by subject
hasAttachmentNoFilter emails with attachments
isUnreadNoFilter unread emails
mailboxIdNoSearch within specific mailbox
afterNoEmails after this date (ISO 8601)
beforeNoEmails before this date (ISO 8601)
limitNoMaximum results (default: 20)
offsetNoZero-based offset for pagination. Use next_offset from the previous response to fetch the next page.
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds value by explaining the paginated response structure (items, total, has_more, next_offset) and the ability to refine/continue search. No contradiction with annotations.

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?

Three sentences, front-loaded with purpose, then usage guidelines, then return value info. No redundancy, every sentence serves a purpose.

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?

Given 11 parameters with full schema descriptions and no output schema, the description adequately covers the return structure and pagination. Could optionally mention default limit (20) but schema covers it. Complete enough.

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

Parameters4/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 groups filters under 'structured filters' and lists key ones implicitly, providing context beyond individual descriptions. Adds moderate value.

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 'Search Fastmail email with structured filters' and lists specific filter types. It distinguishes from siblings by specifying when to use alternative tools (get_recent_emails, get_email).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly provides when-to-use examples ('find the latest message from Alice') and when-not-to-use ('Do not use for simple inbox checks; use get_recent_emails. Do not use when you already have an emailId; use get_email').

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/as-j/fastmail-mcp'

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