Skip to main content
Glama

Search Outlook

search_outlook_messages
Read-only

Search the user's connected Outlook mailboxes and return matching messages, newest first: from, to, subject, date, a short preview, the mailbox it came from, and a web_link that opens the message in Outlook. query is Outlook search (KQL): plain words match anywhere, and from:jane@acme.com, to:jane@acme.com, subject:budget, hasattachments:true and received>=2026-09-01 narrow it. Pass folder='sentitems' for mail the user sent. Use this, not the Gmail tools, for Outlook mailboxes. If it reports Outlook is not connected, give the user the link it returns.

Input Schema

NameRequiredDescriptionDefault
queryYesThe search, e.g. 'from:jane@acme.com budget'.
folderNoLimit to one folder: 'inbox', 'sentitems', 'archive', or an id from list_outlook_folders. Omit for all mail.
accountNoEmail address of one connected Outlook mailbox. Omit to use every connected mailbox.
max_resultsNoMax messages to return (default 10, max 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds genuine behavioral context beyond that — result ordering ('newest first'), the exact result shape, and the not-connected error path. It stops short of covering pagination or rate limiting, so a 4 rather than a 5.

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?

Front-loads the core action, then the query syntax, then the sibling routing rule, then the error fallback. Every sentence carries a distinct actionable fact with no repetition of the schema or title.

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?

With no output schema, the description compensates by enumerating the returned fields; with only a readOnlyHint annotation, it adds ordering and error-handling detail. An agent has everything needed to call this correctly without opening anything else.

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, but the description adds real value the schema does not: it explains that `query` is Outlook KQL and demonstrates the syntax (from:, to:, subject:, hasattachments:, received>=), which meaningfully improves query construction.

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?

States a specific verb and resource ('Search the user's connected Outlook mailboxes and return matching messages') and enumerates the returned fields, giving the agent a precise picture of the operation. It explicitly distinguishes itself from the Gmail siblings ('Use this, not the Gmail tools, for Outlook mailboxes').

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?

Explicitly names the alternative (Gmail tools) and the condition that selects this one (Outlook mailboxes), plus a concrete sub-case: pass folder='sentitems' for sent mail. It also tells the agent what to do on failure — surface the returned connection link to the user.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.