Skip to main content
Glama
M365 Attachment Reader MCP Local

M365 Attachment Reader MCP Local

by hcngdanh

List Recent Outlook Messages

list_recent_messages
Read-onlyIdempotent

Lists recent Outlook emails from Microsoft 365, defaulting to Inbox and attachment-preferred results, with optional subject or sender filters.

Instructions

List recent Outlook emails from Microsoft 365. By default this searches the Inbox, prefers emails with attachments, and can filter by subject or sender name/address.

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": "list_recent_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
folderNoinbox
mailboxNome
fromContainsNo
subjectContainsNo
onlyWithAttachmentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior, so the description passes a lower bar. It still adds real signal beyond them: the Inbox-by-default scope and the notable quirk that results are biased toward messages with attachments by default, which materially affects how an agent should interpret the output.

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 tight sentences with the core purpose front-loaded followed by default-behavior detail. Nothing is redundant, though the phrasing mixes scope and filtering in a way that could be split more cleanly.

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 output schema, no annotations gaps, and six parameters, an agent still lacks guidance on what a returned message contains and how the `top` limit bounds results. It is adequate to invoke the tool, but not fully complete for a search-style listing tool.

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 0% across 6 parameters, so the description must compensate. It explains folder (Inbox default), the attachment preference default, and subject/sender substring filtering, but leaves `top` (result limit) and `mailbox` completely unaddressed, so it only partly closes the gap.

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 gives a specific verb and resource ("List recent Outlook emails from Microsoft 365") and names the dominant behavioral scope (Inbox default, attachment preference). It is clearly distinct from sibling tools whose names imply single-message or attachment-level reads, though it does not explicitly name them.

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?

It states useful context — defaults to Inbox search and attachment-preferring results — which implies when the tool is appropriate for a broad recent-mail sweep. However, it never states when to use it instead of reading a single email or listing attachments, and gives no exclusions.

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