Skip to main content
Glama

Read an Outlook attachment

read_outlook_attachment
Read-only

Open one attachment of an Outlook message and return what is in it. Text, CSV, JSON, HTML and code files come back as themselves; images come back as pictures the assistant can look at (a large photo, or a HEIC or TIFF, is scaled down to a JPEG; images up to 25 MB); a PDF comes back whole as a document (an embedded application/pdf resource) for the assistant to read. Word documents (.docx) come back as their text. Excel workbooks can't be read here — but any file attachment can be saved as-is with save_outlook_attachment_to_onedrive. Attached emails and OneDrive links are not files and are refused. Other attachments up to 10 MB. Get attachmentId from get_outlook_message or get_outlook_conversation.

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

Input Schema

NameRequiredDescriptionDefault
mailboxYesEmail address of the connected Outlook/Microsoft 365 mailbox to act on. Call list_authorized_mailboxes to see available options.
messageIdYes
attachmentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly, non-destructive, closed-world; the description adds substantial behavior beyond that: per-format return shapes (text, image-as-JPEG with HEIC/TIFF downscaling, PDF delivered as an embedded application/pdf resource, docx as text), explicit size limits (25 MB images, 10 MB other attachments), and refusal cases. This is exactly the conversion and limits context an agent needs to predict the result.

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?

Front-loaded with purpose, then a dense but information-bearing enumeration of format outcomes and limits. Every clause carries functional detail, though the run-on file-type list could be structured as bullets for faster scanning.

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 read-only tool with no output schema and thin parameter documentation, the description covers return shapes, size caps, refusals, and the alternative path thoroughly. The only remaining gap is the undocumented messageId parameter, which is largely inferable from context.

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 coverage is only 33%: mailbox is documented inline, but messageId and attachmentId are bare strings. The description partially compensates by telling the agent where attachmentId comes from, though messageId's role (the message containing the attachment) is left implicit. Adequate but not full compensation for the coverage gap.

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?

States a specific verb and resource ('Open one attachment of an Outlook message and return what is in it') and immediately narrows scope by enumerating what does and does not come back. It also names the sibling that handles the excluded case (save_outlook_attachment_to_onedrive), so the agent can distinguish it from alternatives without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing is provided: Excel workbooks must go to save_outlook_attachment_to_onedrive, attached emails and OneDrive links are refused, and the required attachmentId is sourced from get_outlook_message or get_outlook_conversation. Both the when-to-use and when-not-to-use conditions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources