Skip to main content
Glama
outlook-mcp

outlook-mcp

by dbfournier33

search_emails

Search emails across all Outlook folders using KQL filters like from: or subject:, or plain text, and return matching messages with a configurable result limit.

Instructions

Search emails across all folders. Supports KQL syntax: from:john subject:invoice, or plain text search.

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_emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query. Supports KQL: from:name, subject:text, or plain text
page_sizeNoNumber of results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it discloses the folder scope, which is genuinely useful behavior beyond the schema. However, it says nothing about the result ceiling imposed by page_size (max 50), ordering of results, truncation behavior, or that this is a non-mutating read — gaps an agent would want when planning a paged search.

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?

Two short sentences, front-loading the core action and scope before the syntax note; nothing is wasted. The second sentence overlaps with the query parameter's schema description, which is a minor redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the definition should cover what a search returns (result shape, pagination via page_size, how many folders are swept). It covers scope and query syntax adequately but leaves return behavior undocumented for a tool whose only tuning knob is page size.

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 description coverage is 100%, so both parameters are already documented in the schema, including KQL syntax and the page_size range. The description's KQL examples largely restate the schema's query description rather than adding new meaning such as default field matching or escaping rules.

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?

"Search emails across all folders" states a specific verb (search) and resource (emails) plus an explicit scope (all folders), which separates it from folder-scoped siblings like list_emails or summarize_folder. It stops short of naming an alternative outright, so differentiation is inferential rather than explicit.

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?

The "across all folders" scope implies when this tool is appropriate versus listing a single folder's contents, and the KQL syntax hint signals query-based retrieval. There is no explicit when-not guidance, no statement about what to do for exact-ID lookups (read_email), and no mention of alternatives.

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