Skip to main content
Glama

search-emails

Read-only

Search, filter, and sync emails from Outlook. Supports text queries, sender/subject/date filters, delta changes, conversation threads, and message ID lookup.

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)
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description reinforces this with 'read-only' and explains fallback behavior for Outlook.com accounts. It adds context on paging and defaults but does not cover all edge cases (e.g., rate limits). The bar is lowered due to annotations, and the description adds meaningful behavioral context.

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 approximately 150 words and well-structured, starting with the main purpose then detailing each mode. While it is lengthy, the complexity of six modes justifies the length. It is front-loaded and every sentence adds value, earning a solid 4.

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 tool's 20 parameters and no output schema, the description thoroughly explains return values ('Returns paged messages with id/subject/from/receivedDateTime/preview by default; use outputVerbosity to expand') and covers all six modes. It is complete for a read-only search tool, though it lacks error handling details.

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. The description adds value by explaining how parameters combine into six modes, clarifying relationships (e.g., deltaMode and deltaToken) and providing practical usage examples. This goes beyond the schema's 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's purpose: 'Search, list, delta-sync, or thread-group emails — six modes selected by parameters (read-only).' It uses specific verbs and resources and distinguishes itself from sibling tools like read-email and update-email by covering multiple modes.

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 explicitly details when to use each mode by parameter combinations, e.g., 'With no params: lists recent emails... With query/from/to/subject/date filters: full search...' It also provides guidance on limitations for Outlook.com accounts, helping the agent choose the right mode.

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-mcp'

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