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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_outlook_messages"
  }
}

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 or id:<mailbox id> 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. Changed1 schema field changed
    • changedInput schema / properties / account / description
      Previous value: -"Email address of one connected Outlook mailbox. Omit to use every connected mailbox."New value: +"Email address or id:<mailbox id> of one connected Outlook mailbox. Omit to use every connected mailbox."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered and the description is not required to establish it. The description adds real behavioral context beyond that: result ordering (newest first), the exact shape of returned fields including web_link, and the not-connected error behavior with its returned link. It does not discuss truncation of the 'short preview' field or result limiting beyond the schema's max_results, which keeps it from 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded: what it does and what it returns come first, then query syntax, then routing and error handling. Every sentence carries information, though the operator enumeration makes the paragraph dense and a short bulleted split would scan faster.

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 four parameters and no output schema, the description covers the return fields, ordering, query language, folder and account scoping, and failure behavior. This is enough for an agent to select and invoke the tool 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 the baseline is 3, but the description earns extra credit by teaching the KQL syntax of `query` with named operators (from:, to:, subject:, hasattachments:, received>=) that the schema only hints at with one example. It also clarifies folder semantics with a concrete sentitems example, adding meaning the enum-free schema does not supply.

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 opens with a specific verb and resource ('Search the user's connected Outlook mailboxes and return matching messages') and immediately enumerates the returned fields, so an agent knows both the action and the payoff. It explicitly distinguishes itself from the Gmail siblings ('Use this, not the Gmail tools, for Outlook mailboxes'), which is exactly the kind of sibling separation that removes ambiguity.

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?

It states the primary use case, names a concrete alternative to avoid (Gmail tools), and gives a targeted variant ('Pass folder=sentitems for mail the user sent'). It also prescribes a recovery path when the tool reports Outlook is not connected, so the agent knows what to do on failure rather than guessing.

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.