Skip to main content
Glama
M365 Attachment Reader MCP Local

M365 Attachment Reader MCP Local

by hcngdanh

Read Email Attachment

read_email_attachment
Read-onlyIdempotent

Download Outlook attachments via Microsoft Graph and parse PDFs, Office files, images, archives, MSG, and text locally to extract readable content.

Instructions

Download an Outlook attachment directly from Microsoft Graph and parse it locally. Supports PDF, OCR-scanned PDF, Word, PowerPoint, Excel, images, archives, MSG, and plain text. Large image previews are automatically downscaled to fit MCP payload limits.

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": {
      "messageId": "<messageId>",
      "attachmentId": "<attachmentId>"
    },
    "name": "read_email_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
mailboxNome
messageIdYes
attachmentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world access, so the description's job is to add behavior — and it does: it discloses that the file is fetched from Microsoft Graph then parsed locally, and that large image previews are automatically downscaled to fit MCP payload limits, a non-obvious output-side behavior. It omits what happens with unsupported formats or parse failures, which keeps it from a 5.

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?

Three compact sentences, front-loaded with the core action, then capability breadth, then an output caveat. No filler and no repetition of the tool name.

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?

There is no output schema, so the description should signal the return shape (parsed text, extracted file, base64, per-format differences) and it does not. Combined with the silent parameters, an agent knows what the tool does but not exactly what it will hand back or how to supply inputs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for all three parameters, so the description carries the full burden — yet it says nothing about messageId, attachmentId, or the mailbox field (whose 'me' default is never mentioned). An agent gets no hint about identifier formats or that mailbox can point at a shared/delegated mailbox.

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?

Uses a specific verb+resource ('Download an Outlook attachment ... and parse it locally') and enumerates supported formats, which makes the capability unmistakable. It falls short of a 5 because it never names or contrasts with the obvious sibling (list_email_attachments) that would produce the attachmentId.

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?

The description never states when to reach for this tool versus read_email, list_email_attachments, or read_email_attachment alternatives, nor what prerequisutes (a known messageId/attachmentId) must be satisfied first. The only implicit guidance is the format list, which hints at use cases but not tool selection.

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