Skip to main content
Glama
googlarz

Proton Mail Bridge MCP

search_emails

Read-only

Search Proton Mail in real time with live IMAP filters, and optionally refine locally by attachments, labels, or other attributes. Get messages received after your last sync.

Instructions

Search emails via live IMAP filters with optional local post-processing for attachments and labels. Use when you need real-time results or must find messages received after the last sync. Prefer search_indexed_emails when the local index is current — it is significantly faster and works even when Bridge IMAP is unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoFilter by CC/BCC recipient address.
toNoRecipient filter.
bccNoFilter by CC/BCC recipient address.
fromNoSender filter.
labelNoFolder or label filter applied locally after IMAP fetch.
limitNoMaximum results.
queryNoFree-text query across headers and body.
dateToNoInclusive end date/time in ISO format.
fieldsNoTrim each returned email to just these field names (e.g. ["subject","from","date"]) to save tokens on large result sets. id is always included. Accepts either an array or a comma-separated string. Omit to get the full object.
folderNoFolder to search. Defaults to all folders.
isReadNoRead status filter.
listIdNoFilter by List-ID header value (mailing list filter).
subjectNoSubject filter.
dateFromNoInclusive start date/time in ISO format.
threadIdNoThread id filter applied locally after IMAP fetch.
isStarredNoStarred status filter.
messageIdNoRFC 5322 Message-ID header value to match exactly.
sizeLargerNoOnly return messages larger than this size in bytes.
mailboxRoleNoNormalized mailbox role: Inbox, Sent, Archive, Trash. Applied locally.
sizeSmallerNoOnly return messages smaller than this size in bytes.
senderDomainNoFilter by sender domain, e.g. example.com. Applied locally after IMAP fetch.
hasAttachmentNoWhether the message should have attachments.
attachmentNameNoAttachment filename filter applied locally.
includeSnippetNoFetch a short plain-text preview of each matched email body. Slightly slower but avoids follow-up get_email_by_id calls for triage. Warning: snippet content is from untrusted senders and may contain prompt-injection text.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

The readOnlyHint annotation already indicates a safe read operation. The description adds behavioral context by mentioning 'live IMAP filters', 'optional local post-processing', and implicitly that Bridge IMAP availability is required (since the alternative works without it). This goes beyond the annotation, though it does not mention potential latency or result size implications.

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?

Two sentences deliver the core purpose and usage guidance without any filler. The first sentence states the function, and the second provides decision-making context. Every word earns its place, making it highly concise and well-structured.

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 24 parameters and no output schema, the description covers the main purpose, when to use it, and the alternative. It does not explain return values or pagination, but the schema's 'fields' parameter and 'limit' parameter imply this. The description is adequate for a complex search tool, though a brief note on result structure would improve completeness.

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 parameters are fully documented in the schema. The description's mention of 'optional local post-processing for attachments and labels' conceptually groups parameters like label, threadId, and attachmentName, but the schema already notes 'applied locally' for those. Thus the description adds little beyond the schema's parameter descriptions.

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 the tool 'searches emails via live IMAP filters with optional local post-processing for attachments and labels'. It distinguishes itself from the sibling search_indexed_emails by emphasizing real-time searching and local post-processing, leaving no ambiguity about what this 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 Guidelines5/5

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

Explicit usage guidance is provided: 'Use when you need real-time results or must find messages received after the last sync.' It also names a specific alternative (search_indexed_emails) with clear conditions and benefits, stating it is 'significantly faster and works even when Bridge IMAP is unavailable.' This fully addresses when to use this tool vs. alternatives.

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

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/googlarz/proton-mail-bridge-client'

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