Skip to main content
Glama
santiv343

outlook-local-mcp

by santiv343

search_emails

Read-only

Search a single Outlook folder by sender, date, unread, attachments, or text in subject/body. Filters combine with AND; returns newest first with cursor pagination.

Instructions

Search one folder without recursion, newest received first. query is a literal case-insensitive substring in subject, body, or subject_body; sender matches the name or available SMTP address. All filters combine with AND. after is inclusive; before exclusive. Dates accept YYYY-MM-DD at Windows local midnight or ISO 8601 with timezone. Body search reads bodies explicitly. Each call examines at most 1000 candidates for about 10 seconds; an external 30-second deadline protects against blocked Outlook. IMPORTANT: zero items with coverage.exhausted=false is an unfinished search, not proof that no email matches. Follow next_cursor with identical filters, optionally changing limit. Cursors are single-use, expire after 10 minutes, and are lost on worker restart. evaluation_complete also accounts for inaccessible candidates; results are best effort.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
limitNo
queryNo
beforeNo
cursorNo
senderNo
unreadNo
query_inNosubject
store_idNo
folder_idNo
has_attachmentsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
omittedNo
coverageYes
store_idYes
warningsNo
folder_idYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which only establish read-only, non-destructive, non-idempotent, open-world), the description discloses runtime traits the agent could not otherwise know: 1000 candidates / ~10s per call, an external 30s deadline against blocked Outlook, single-use cursors expiring in 10 minutes and lost on worker restart, and best-effort results accounting for inaccessible candidates. This is exactly the behavioral context annotations cannot carry.

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?

It is dense but front-loaded, leading with scope and ordering before filter semantics and the crucial incomplete-search warning. Nearly every sentence earns its place; the only mild cost is that several behaviors are packed into a single block, making it slightly heavy to scan.

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?

An output schema exists, so return values need not be explained, and the description covers the parts that schema cannot: pagination mechanics, cursor lifetime, coverage.exhausted semantics, and evaluation_complete accounting for inaccessible items. For a complex 11-parameter search tool, nothing an agent needs to call or interpret it correctly is missing.

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 description coverage is 0%, so the description must carry the burden, and it does for the key filters: query is a literal case-insensitive substring in subject/body/subject_body, query_in selects the field, sender matches name or SMTP address, after is inclusive and before exclusive, and both date formats are spelled out. It leaves store_id, folder_id, unread and has_attachments unspecified, with folder scope only implied by 'one folder'.

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?

The description states a specific verb, resource and scope: 'Search one folder without recursion, newest received first,' which tells an agent exactly what operation this performs and the ordering/scope constraint. It doesn't explicitly differentiate itself from the sibling recent_emails or read_email, so the agent must infer the routing, but the core purpose is unmistakable.

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?

It gives strong operational context: filters combine with AND, how to follow next_cursor with identical filters, and the critical pitfall that zero results with coverage.exhausted=false is an unfinished search rather than a definitive negative. It doesn't name a sibling alternative or state when-not to use this tool, so it stops short of full when/when-not guidance.

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