Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

search-emails

Search Outlook emails by sender, recipient, subject, query text, folder, or attachment status to quickly locate specific messages and filter unread items.

Instructions

Search for emails using various criteria

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
toNoFilter by recipient email address or name
fromNoFilter by sender email address or name
countNoNumber of results to return (default: 10, max: 50)
queryNoSearch query text to find in emails
folderNoEmail folder to search in (default: 'inbox')
subjectNoFilter by email subject
unreadOnlyNoFilter to only unread emails
hasAttachmentsNoFilter to only emails with attachments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and supplies none of it: nothing about read-only safety, result ordering, pagination beyond the count cap, or how multiple criteria combine (AND vs OR). For an 8-parameter query tool with zero annotation coverage, this is a substantial gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short clause with no redundancy, but the brevity comes from under-specification rather than economy. "Various criteria" occupies space without earning it.

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

Completeness2/5

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

For an 8-parameter, unannotated search tool with no output schema, the description should at least say what is searched, how criteria combine, and what comes back. None of that is present, leaving the schema to do essentially all the work.

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%, and every parameter including defaults for count and folder is documented in the schema, so the baseline is 3. The description adds no meaning beyond it and does not explain how filters interact when several are supplied.

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

Purpose3/5

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

"Search for emails" states a clear verb and resource, but "using various criteria" is filler that conveys nothing about scope. With a sibling named list-emails, the definition never clarifies what distinguishes searching from listing, so an agent must infer the boundary.

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 when-to-use guidance, no mention of alternatives such as list-emails or read-email, and no exclusions. The agent is left to guess whether this tool is appropriate for a simple folder listing or only for criteria-based queries.

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