Skip to main content
Glama

Find Emails

find_emails
Read-onlyIdempotent

Search your entire mailbox by text or list emails in a folder, with pagination, filtering, and unread-only options.

Instructions

List emails in a folder, or search the whole mailbox by text.

Newest first. Bodies are not included — a row carries a short preview at most; full body, attachment ids and links come from get_email.

A listing answers with total/has_more and both continuations, next_offset and next_cursor — take either for the next page. A search has neither a total (the server reports 0 whatever it found) nor a cursor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNonext_cursor from the previous answer. Does not drift. Not combinable with offset, with query, or with limit=200.
limitNo
queryNofull-text search over the OWA index — subject, body and sender, Exchange KQL (e.g. 'премия' or 'from:ivanov отчёт'). Finds old mail the web client finds. Omitted → plain folder listing.
folderNowell-known name, custom folder name, or FolderId. With `query`, search covers the whole mailbox unless you narrow it here.inbox
offsetNoskip this many rows. Drifts when mail arrives during a walk.
granularityNowith `query` only. A thread row lists only the messages that matched, not the whole conversation — for that use get_thread.threads
unread_onlyNofiltered by the server on both routes, so it reaches the whole folder or index rather than the page in hand.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses important behaviors: newest-first ordering, bodies omitted, pagination via total/has_more and both continuations, and unusual search behavior (total reports 0, no cursor). This adds significant context not available from annotations.

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?

The description is compact yet information-dense, front-loaded with the core purpose. Every sentence contributes meaningful detail, and the structure flows logically from function to limitations to pagination specifics.

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?

Given the 7 parameters and output schema, the description covers all essential operational aspects: listing vs search, result contents, pagination mechanics, and exceptions. It is complete enough for an agent to select and invoke the tool correctly without further documentation.

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 high (86%), so baseline is 3. The description adds value by explaining how pagination parameters work in context ('take either for the next page') and clarifying that search lacks next_cursor, which goes beyond individual 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 lists emails in a folder or searches the whole mailbox by text. It distinguishes itself from siblings like get_email and get_thread by explicitly noting bodies are excluded and pointing to get_email for full content.

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?

The description provides explicit guidance for when to use this tool vs alternatives: 'full body, attachment ids and links come from get_email' and mentions 'for that use get_thread' in the schema. It also clarifies the two modes (folder listing vs search) and relevant pagination behavior.

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/mainpart/owa-mail-mcp'

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