Skip to main content
Glama
mdwsk88

MS 365-21V MCP Server

by mdwsk88

Get Mail Attachment

mail_get_attachment

Retrieve a mail attachment by message and attachment IDs. Set raw=true to download base64 bytes, up to 10 MB.

Instructions

Read one mail attachment. Set raw=true to return file bytes as base64, limited to 10 MB. Requires delegated Mail.Read. Chinese intents / 中文意图: 读取邮件附件, 下载邮件附件, 查看附件内容.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoReturn raw attachment bytes as base64. Defaults to false.
messageIdYesMessage ID.
attachmentIdYesAttachment ID.
Behavior4/5

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

No annotations are provided, but the description compensates with key behavioral details: raw=true returns base64 bytes, a 10MB limit, and a delegated Mail.Read permission requirement. It does not explain the default (raw=false) return format, which is a transparency gap.

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?

The description is two concise sentences plus a Chinese intent list, immediately stating the core purpose. Every sentence adds value—usage, size limit, permission, and multilingual support—with no redundancy.

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?

The description covers the essential operation, size limit, and permission, but lacks an output schema and does not clarify the default return format or how to obtain attachmentId from mail_list_attachments. This leaves the tool incomplete for an agent to fully anticipate results.

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?

The schema already provides descriptions for all three parameters (100% coverage), so the baseline is 3. The description reinforces raw=true base64 behavior and adds the 10MB limit, but adds nothing beyond the schema for messageId/attachmentId.

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 opens with 'Read one mail attachment,' which is a specific verb (read) and resource (mail attachment), and it distinguishes from sibling mail_list_attachments by focusing on a single attachment's content. The inclusion of 'one' clarifies scope.

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?

The description implies usage for fetching attachment content but does not explicitly contrast with alternatives like mail_list_attachments (listing) or mail_get_message (message). No when-not-to-use or alternative tool is named, so guidance is only implicit.

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/mdwsk88/ms-365-21v-mcp-server'

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