Skip to main content
Glama
MadLlama25

Fastmail MCP Server

by MadLlama25

search_emails_metadata

Search email subject and body, then return only metadata (e.g., sender, date, subject) without message previews. Use when you need content matching but must avoid exposing body text.

Instructions

Same as search_emails (free-text search across subject and body) but returns ONLY metadata on each match — id, threadId, subject, from, to, replyTo, receivedAt, hasAttachment, keywords. The query still searches body text on the server side; only the result envelopes come back, never preview or body excerpts. Use when a content match is required (e.g. "find all messages mentioning X") but the matches must not surface body fragments to the caller. When the server reports a total match count, results are wrapped in a {"total", "items"} JSON envelope; otherwise a bare JSON array is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results (default: 20)
queryYesSearch query string
ascendingNoSort oldest first instead of newest first (default: false)
Behavior5/5

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

With no annotations provided, the description carries full behavioral burden and excels: it discloses that the search is server-side against body text, that only metadata envelopes are returned (never body excerpts), and that the JSON shape varies (envelope vs bare array) based on server-reported match counts. This is rich, accurate, and goes beyond minimal requirements.

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?

The description is moderately sized but every sentence serves a purpose: establishing the sibling relationship, clarifying the metadata-only output, providing a use case, and explaining the conditional envelope format. It is front-loaded with the most important distinction and avoids fluff, though it could be tighter by removing redundant phrases like 'never preview or body excerpts' after already saying 'only metadata'.

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 tool with no output schema and no annotations, the description is remarkably complete: it covers purpose, relationship to sibling search_emails, when to use it, what it returns, and the dynamic JSON envelope. It does not mention pagination behavior or potential errors, but for a straightforward search/metadata tool, the provided context is sufficient for a typical agent to select and invoke it correctly.

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?

The input schema covers all three parameters (query, limit, ascending) with basic descriptions, giving 100% schema coverage. The tool description adds meaningful behavioral context for the query parameter (it searches body text on the server side), but it doesn't provide additional per-parameter semantics beyond what the schema already offers. This meets the baseline for high schema coverage.

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 opens with 'Same as search_emails (free-text search across subject and body) but returns ONLY metadata on each match', clearly specifying the action, resource, and scope while distinguishing it from its sibling search_emails. It also enumerates the exact fields returned, leaving no ambiguity about what the tool does.

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 explicitly states when to use the tool: 'Use when a content match is required … but the matches must not surface body fragments to the caller.' It also references search_emails as the alternative for full-text results. However, it does not explicitly contrast with other metadata-related siblings like advanced_search_metadata, so it stops short of comprehensive alternative guidance.

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

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