Skip to main content
Glama

Search emails

proton_search_emails
Read-onlyIdempotent

Search emails by keyword across subject, sender, recipient, or body. Apply date filters and show only unread messages to find specific emails quickly.

Instructions

Keyword-search emails in a mailbox. Filter by text in any field, or restrict to subject/from/to/body. Combine with date range and unseen flag. Returns newest matches first, up to 'limit'. Use 'text' for a broad 'anywhere' match.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryNoKeyword to search for
sinceNoISO date — only messages on/after this date
beforeNoISO date — only messages before this date
fieldsNoWhich fields to search. 'text' = anywhere.
mailboxNoINBOX
to_addressNoRestrict to messages to this address
unseen_onlyNoOnly return unread messages
from_addressNoRestrict to messages from this address
response_formatNomarkdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
itemsYes
mailboxYes
matchedYes
has_moreYes
Behavior5/5

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

Discloses ordering (newest first), limit behavior, and field search semantics. Complements annotations (readOnlyHint, idempotentHint) with actionable details.

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, each packed with essential information. No redundancy or wasted words. Front-loaded with main purpose.

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

Completeness5/5

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

Covers sorting, default filter, filtering dimensions, and result count. Output schema exists so return format is external. Thorough for a search tool.

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?

Adds meaning to key parameters like 'fields' (search anywhere vs specific), 'limit', 'since'/'before', and 'unseen_only'. Explains behavior beyond schema descriptions; 70% schema coverage is complemented.

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 clearly states it keyword-searches emails, with filtering options. Distinguishes from sibling 'proton_list_emails' by emphasizing keyword search.

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

Usage Guidelines4/5

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

Provides clear context: broad search via 'text', restrict to subject/from/to/body, combine with date range and unseen flag. Lacks explicit when-not-to-use or alternatives, but sufficient.

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/Iniciativas-Alexendros/agent-protonsuite'

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