Skip to main content
Glama
nhatho0001

Outlook Email MCP Server

by nhatho0001

read_attachment

Read the content of an email attachment. Provide message and attachment IDs to retrieve text from supported file types like txt, csv, json, or pdf.

Instructions

Đọc và trả về nội dung file đính kèm trong email.

Hỗ trợ: txt, csv, json, html, xml, md (text), xlsx (Excel), pdf (PDF), docx (Word). Ảnh và định dạng khác trả về thông báo.

Args: message_id: ID của email chứa file đính kèm. attachment_id: ID của file đính kèm (lấy từ list_attachments).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYes
attachment_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries burden. It states the action (read), supported formats, and unsupported behavior. However, it does not mention authentication, rate limits, or handling of large files, which are minor omissions for a read tool.

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?

The description is concise, structured with a main purpose line and bullet points for parameters. It is efficient but could be slightly more streamlined.

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

Completeness5/5

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

Given the tool has an output schema, the description covers all necessary aspects: purpose, supported formats, parameter meanings, and unsupported behavior. It is complete for an agent to invoke correctly.

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 has 0% description coverage, so the description compensates by explaining message_id as email ID and attachment_id as file ID from list_attachments, adding meaningful context beyond the schema.

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 clearly states the tool reads and returns attachment content from emails, with specific supported formats, distinguishing it from sibling list_attachments which lists attachments.

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 lists supported and unsupported formats, indicating when to use. It implies prerequisites via parameter guidance (attachment_id from list_attachments) but does not explicitly state that list_attachments should be called first.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nhatho0001/M365-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server