Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

search_emails

Locate emails in a Proton Mail folder by sender, recipient, subject, body text, date range, or read/flagged status, returning filtered results to help narrow inbox searches.

Instructions

Search emails in a folder by sender, recipient, subject, body text, date range, or read/flagged status

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 address or name
bodyNoFilter by body text content
fromNoFilter by sender address or name
seenNoFilter by read status (true=read, false=unread)
limitNoMax results to return
sinceNoEmails on or after this date (YYYY-MM-DD)
beforeNoEmails before this date (YYYY-MM-DD)
folderNoFolder to search inINBOX
flaggedNoFilter by flagged status
subjectNoFilter by subject text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies folder scoping ('in a folder') but says nothing about read-only safety, result caps, sorting, or what happens when no filters are supplied — significant gaps for a 10-parameter query tool.

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 tight sentence that front-loads the verb and resource before listing criteria. No filler, though the criteria list is somewhat redundant with the schema's property descriptions.

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

Completeness2/5

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

With 10 parameters, no annotations, and no output schema, the description should disclose defaults (folder=INBOX, limit=20), filter-combination behavior, and result limits. None of that is present, so it is under-specified for the tool's 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%, so the schema already documents every parameter's meaning and format. The description's field enumeration echoes the schema without adding format, combination, or defaulting detail, so the baseline 3 applies.

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+resource ('Search emails') and enumerates the searchable criteria (sender, recipient, subject, body, date range, read/flagged status), so an agent knows exactly what capability this is. It does not, however, distinguish this from sibling tools like list_emails, leaving overlap unresolved.

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 guidance on when to use this tool versus list_emails or the mark/flag siblings, no statement on whether filters combine with AND semantics, and no mention of prerequisites. The agent must infer the usage context from the name alone.

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