Skip to main content
Glama
outlook-mail-mcp

outlook-mail-mcp

by YehorMaly

Search Emails

search_emails
Read-onlyIdempotent

Find emails in a selected mailbox or all non-trash folders by query, sender, subject, unread status, or ISO date range; optionally scan recent message bodies for broader matches.

Instructions

Search emails in a mailbox (or "all" non-trash mailboxes) by query, sender, subject, unread status, or ISO date range. Matches subject/sender fast; set include_body=true to also scan up to 150 recent bodies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results to return (1-100).
queryNoCase-insensitive substring to match in subject/sender (and body if include_body=true).
sinceNoISO date/timestamp lower bound (inclusive), e.g. 2026-11-01.
untilNoISO date/timestamp upper bound (inclusive), e.g. 2026-12-05.
senderNoFilter by sender name or email substring.
mailboxNoMailbox name (e.g. Inbox, Sent Items, Archive) or "all" for all non-trash folders.Inbox
subjectNoFilter by subject substring.
unread_onlyNoOnly return unread messages.
include_bodyNoIf true, also search message bodies (scans up to 150 most recent candidates).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavior beyond that: the mailbox="all" scope excludes trash, and include_body is capped at 150 most recent candidate bodies — a material coverage limit the agent would otherwise miss.

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?

Two sentences, zero waste, with the primary search scope front-loaded ahead of the optional body-scan caveat. The important performance limit is placed exactly where a reader will see it before calling.

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?

All 9 parameters are optional and fully documented in the schema, and no output schema exists, so little is required of the description. It covers the main risk (body scan breadth) but says nothing about result ordering or how the 150-candidate cap interacts with the limit parameter.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter already carries its own description; the baseline of 3 applies. The description adds the non-obvious body-scan cap and the fast-path contrast between header matching and body matching, but contributes no syntax detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (search) and resource (emails), then enumerates the filter dimensions — query, sender, subject, unread status, ISO date range. An agent can tell it apart from list_emails by the search/filter framing, though the sibling is never named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: use filters to narrow a search rather than list everything. There is no explicit when-to-use versus list_emails, read_email, or list_mailboxes, and no stated exclusions or prerequisites. An agent must infer the choice of sibling.

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