Skip to main content
Glama

search-emails

Read-only

Search, list, or sync emails across folders with filters by sender, subject, date, or attachments. Use delta sync for incremental updates or group by conversation for threaded view.

Instructions

Search, list, delta-sync, or thread-group emails — six modes selected by parameters (read-only). With no params: lists recent emails in folder (default inbox). With query/from/to/subject/date filters: full search (combines via OData filter). With kqlQuery: raw Keyword Query Language for advanced server-side search. With deltaMode: true: returns current state plus a deltaToken; pass the token back on the next call for incremental changes only — ideal for inbox monitoring. With groupByConversation: true: returns conversation threads. With conversationId: returns all messages in a single thread. With internetMessageId: looks up a message by its RFC Message-ID header. Personal Outlook.com accounts have limited $search support — this tool falls back through OData filters / boolean filters / recent listing automatically, but structured filters (from/subject/receivedAfter/hasAttachments/unreadOnly) return cleaner results. Returns paged messages with id/subject/from/receivedDateTime/preview by default; use outputVerbosity to expand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deltaModeNoEnable delta sync mode. Returns only changes since last sync. Use deltaToken for subsequent calls.
internetMessageIdNoLook up email by Message-ID header (e.g. <abc123@example.com>). For threading/deduplication.
conversationIdNoGet all messages in a conversation thread by conversationId.
groupByConversationNoList conversations (threads) grouped by conversationId instead of individual emails.
queryNoSearch query text. Omit for list mode.
kqlQueryNoRaw KQL (Keyword Query Language) query for advanced search. Bypasses other search params.
folderNoEmail folder (default: 'inbox')
fromNoFilter by sender email/name
toNoFilter by recipient email/name
subjectNoFilter by subject
hasAttachmentsNoFilter to emails with attachments
unreadOnlyNoFilter to unread emails only
receivedAfterNoFilter emails received after date (ISO 8601)
receivedBeforeNoFilter emails received before date (ISO 8601)
searchAllFoldersNoSearch across all mail folders
countNoNumber of results (list default: 25, search default: 10, max: 50)
outputVerbosityNoOutput detail level (default: standard)
deltaTokenNoToken from previous delta call for incremental sync (deltaMode only)
maxResultsNoMax results per page for delta sync (default: 100, max: 200)
includeHeadersNoInclude email headers for each message (conversationId only)
Behavior5/5

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

Annotations already declare readOnlyHint=true. The description reinforces this and adds substantial behavioral detail: fallback logic for Outlook.com, default output fields, pagination, delta token usage, and output verbosity control. No contradictions found.

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?

The description is well-structured with a clear summary followed by mode details and notes. It is somewhat long but every sentence adds value given the complexity. A slight improvement could be more concise formatting.

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 the tool's complexity (20 params, 6 modes) and absence of an output schema, the description covers most aspects: all modes, fallbacks, default output, and output verbosity. Missing details like sorting order and pagination continuation (nextLink) are minor gaps.

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

Parameters5/5

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

Schema coverage is 100%, but the description goes far beyond by explaining how parameters combine (e.g., OData filter, kqlQuery bypass), defaults (folder, count), and the delta token workflow. This adds significant semantic value for parameter selection.

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 starts by clearly stating the tool's purpose: to search, list, delta-sync, or thread-group emails. It distinguishes six distinct modes selected by parameters, which differentiates it from siblings like read-email (single email) and search-people.

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?

The description provides explicit guidance on when to use each mode (e.g., no params for listing, query for search, deltaMode for incremental sync). It also warns about Outlook.com limitations and recommends structured filters for cleaner results. However, it does not explicitly exclude alternatives like read-email.

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/littlebearapps/outlook-assistant'

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