Skip to main content
Glama
dockndevai

@dockndevai/mcp-outlook

Search messages

search_messages
Read-onlyIdempotent

Find Outlook messages by full-text search across subject, body, sender, and recipients. Use keywords or syntax like 'from:alice@contoso.com' to retrieve compact message summaries.

Instructions

Full-text search across the mailbox (subject, body, sender, recipients) using Microsoft Graph $search. Example queries: "invoice", "from:alice@contoso.com", "subject:release". Returns compact summaries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoMaximum results (capped by OUTLOOK_MAX_RESULTS)
queryYesSearch text, e.g. "quarterly report" or "from:bob@contoso.com"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive behavior. The description adds useful behavioral context beyond that: it uses Microsoft Graph $search, searches specific message fields, and returns compact summaries rather than full messages.

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 a single focused sentence with a small example list and a final note on output format. Every part earns its place, and the key behavioral distinction is front-loaded.

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?

For a simple search tool with one required parameter, read-only annotations, and no output schema, the description is mostly complete. It could more fully describe the returned summary fields, but 'compact summaries' plus the schema and examples provide enough guidance for correct invocation.

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?

The schema already documents both parameters well, so the baseline is 3. The description adds extra meaning by giving concrete query examples such as 'from:alice@contoso.com' and 'subject:release', which illustrate the field-scoped syntax beyond the schema's simple examples.

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 states a specific action ('Full-text search') and resource ('the mailbox'), and scopes it to subject, body, sender, and recipients. This clearly distinguishes it from sibling tools like list_messages, which would be a plain listing rather than a search.

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?

The description makes clear this is the search-oriented tool and even shows query syntax with examples. It does not explicitly say 'do not use this to list all messages' or name alternatives, but the context is strong enough for an agent to select it appropriately.

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