Skip to main content
Glama
Evermail MCP Server

Evermail MCP Server

Search emails

search_emails
Read-onlyIdempotent

Search email archives by query, sender, date range, mailbox, and attachment filters to find matching messages for review or export.

Instructions

Search emails by query, sender, date range, and other filters. Returns a list of matching emails.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax number of results (1-100, default 25)
queryNoFull-text search query
dateToNoFilter: only emails before this date (ISO 8601)
dateFromNoFilter: only emails after this date (ISO 8601)
mailboxIdNoFilter by mailbox ID (GUID)
fromAddressNoFilter by sender email address
hasAttachmentsNoOnly return emails with attachments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile needs no restating. The description adds only that the result is a list of matching emails; it says nothing about result ordering, whether date bounds are inclusive, or what happens with zero matches, and the limit/pagination behavior is left entirely to the schema.

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?

Two sentences, front-loaded with the action and filter surface, with no preamble or repetition. The phrase "and other filters" is the only soft filler, but it honestly signals that the enumerated filters are not exhaustive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, zero-required tool with no output schema, the description does the minimum: it states that a list of matching emails is returned but not what an email record minimally contains. Combined with the annotation coverage that gap is tolerable, but a brief note on default result behavior (all emails when no filter is given) would materially improve it.

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 description coverage is 100% and every parameter carries its own description including defaults and the 1-100 bound on limit, so the baseline of 3 applies. The description merely echoes the filter categories already documented in the schema (fromAddress, dateFrom/dateTo) without adding format or interaction semantics such as how combined filters compose.

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 gives a specific verb and resource ("Search emails") and enumerates the primary filter dimensions (query, sender, date range), so an agent knows exactly what capability it is selecting. It stops short of differentiating from siblings like export_emails or get_email, but the purpose itself is unambiguous.

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?

Usage is only implied: the agent must infer that this is the tool to reach for when locating emails by criteria rather than fetching one by ID or exporting. No alternatives are named and no when-not-to-use condition is stated, leaving routing between search_emails, get_email, and export_emails to inference.

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