Skip to main content
Glama
@mcp-z/mcp-outlook
by mcp-z

message-search

Search Outlook emails by sender, recipient, subject, body, date, read status, attachments, or category using structured queries, and return selected fields with paging.

Instructions

Search Outlook messages using structured query objects with flexible field selection. A pageSize or fields changed alongside a pageToken has no effect, because the token carries the next-page link that governs the page.

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": "message-search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoStructured query object or JSON string for filtering messages. Use query-syntax prompt for reference and kqlQuery for KQL syntax.
shapeNoResponse shape: objects (keyed) or arrays (columnar, matching fields order)objects
fieldsNoComma-separated fields to return. Omit for all fields. Available: id, threadId, subject, from, fromName, to, cc, bcc, date, snippet, body, isRead, isImportant, hasAttachments, attachmentCount, labelIds, folderName
pageSizeNoNumber of items per page (default: 50, max: 500). Accepts numbers or numeric strings.
pageTokenNoToken for retrieving the next page of results (outlook format). Omit for first page.
contentTypeNoFormat for body content: text extracts plain text, html preserves HTML structuretext
excludeThreadHistoryNoWhen true, removes quoted thread history from body content

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.3

TDQS

A3.5/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 behavioral burden. It usefully discloses the non-obvious rule that pageSize or fields changes alongside a pageToken have no effect, but it omits other behavioral context such as read-only expectations, permissions/auth needs, result ordering, and limits.

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?

The description is two sentences, front-loaded with purpose, and each sentence earns its place. The second sentence captures a non-obvious pagination caveat without filler.

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?

The tool is complex, but it has an output schema and 100% input-schema description coverage, so the description need not repeat return values or parameter details. It covers purpose and pagination well, though it could have mentioned structured-query versus raw-KQL selection, which is left to the schema.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema by explaining the pageSize/fields interaction with pageToken and by calling out flexible field selection. It does not add much query-syntax detail, but the schema already covers that.

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 and resource: search Outlook messages using structured query objects with flexible field selection. It is clear enough to distinguish from a single-message getter, though it does not explicitly contrast with siblings such as message-get.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance versus message-get or other retrieval tools, and no guidance on choosing between structured query, exactPhrase, and raw kqlQuery. Usage is only implied by the word 'Search'.

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