Skip to main content
Glama
ProtonMail MCP Server

ProtonMail MCP Server

by barhatch

search_emails

Search emails using advanced filters for sender, recipient, subject, date, folder, read status, star, and attachments to locate matching messages and view truncated body previews.

Instructions

🔍 Search emails with advanced filters (returns truncated body preview, attachment metadata only)

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
toNoFilter by recipient
fromNoFilter by sender
limitNoMax results
queryNoSearch query
dateToNoEnd date (ISO format)
folderNoFolder path to search in (e.g., 'INBOX', 'Folders/MyFolder'). Default: INBOXINBOX
isReadNoFilter by read status
subjectNoFilter by subject
dateFromNoStart date (ISO format)
isStarredNoFilter starred emails
hasAttachmentNoFilter emails with attachments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does valuable work by disclosing that bodies come back truncated and attachments only as metadata — a real constraint an agent needs before relying on the results — but it says nothing about pagination, default limit behavior, sort order, or that the operation is non-mutating.

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?

A single front-loaded sentence with the key constraint in parentheses; nothing is wasted. The emoji is minor decoration, but the sentence is tight and readable.

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 an 11-parameter tool with no annotations and no output schema, the description covers the return-value caveat but omits how results are ordered or capped, whether 'query' searches bodies as well as headers, and how the boolean filters combine. Adequate but with clear gaps for a tool of this complexity.

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% across all 11 parameters, so the schema already explains recipients, sender, dates, folder, and boolean filters. The description adds no syntax or semantic detail beyond the schema, which is the expected baseline when the schema does the heavy lifting.

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?

States a specific verb and resource ('Search emails') plus a qualifier ('advanced filters') that distinguishes it from a plain list. However, it never contrasts with the available siblings such as get_emails or get_email_by_id, so an agent must infer which retrieval tool to pick.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative. 'Advanced filters' only implies that this is the tool for filtered lookups; an agent gets no instruction on when get_emails or get_email_by_id would be the better choice.

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