Skip to main content
Glama
googlarz

Proton Mail Bridge MCP

search_emails

Read-only

Search emails in real time with live IMAP filters, supporting optional local post-processing for attachments and labels. Ideal for retrieving messages received after the 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.
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.
Behavior5/5

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

Description reveals that it uses live IMAP filters, performs optional local post-processing, and includes a warning on the includeSnippet parameter about prompt-injection risk. Annotations already mark readOnlyHint=true, so no contradiction. The description adds valuable behavioral details beyond the annotation.

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?

Three sentences: first announces purpose, second gives usage guidance, third offers alternative. Each sentence adds value; no wasted words. Front-loaded with the core action.

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?

Given 23 parameters fully described in schema and no output schema, the description covers core behavior, usage guidance, and an important security caveat. It does not describe return structure, but that is partially mitigated by the schema's parameter descriptions and the tool's likely standard email list output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. However, the description adds context that some filters (label, threadId, mailboxRole, etc.) are applied locally after IMAP fetch, and it includes a security warning for includeSnippet. This goes 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?

Description explicitly states 'Search emails via live IMAP filters with optional local post-processing for attachments and labels.' This provides a specific verb ('Search') and resource ('emails') and distinguishes from sibling 'search_indexed_emails' by mentioning the live IMAP method.

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?

'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...' Provides clear context for when to use this tool and explicitly names the alternative.

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

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