Skip to main content
Glama

list-mail-attachments

Read-only

Retrieve and manage email attachments from Microsoft 365 messages using filtering, pagination, and search capabilities.

Instructions

Retrieve a list of attachment objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoShow only the first n items
skipNoSkip the first n items
searchNoSearch items by search phrases
filterNoFilter items by property values
countNoInclude count of items
orderbyNoOrder items by property values
selectNoSelect properties to be returned
expandNoExpand related entities
messageIdYesPath parameter: messageId
fetchAllPagesNoAutomatically fetch all pages of results
includeHeadersNoInclude response headers (including ETag) in the response metadata
excludeResponseNoExclude the full response body and only return success or failure indication
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, confirming the safe read-only nature. The description adds no behavioral context beyond 'Retrieve', failing to explain pagination behavior (top/skip/fetchAllPages), OData query patterns (filter/select/expand), or that it returns metadata rather than binary content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise at six words, but inadequately sized for the tool's complexity. While no words are wasted, the single sentence fails to earn its place by providing sufficient value for a 12-parameter tool with OData-style querying capabilities.

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

Completeness2/5

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

Severely incomplete given the complexity: 12 parameters including pagination, projection (select/expand), search/filter, and response control (excludeResponse). With no output schema and minimal description, agents lack context for the attachment object structure and query capabilities.

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 100%, with all 12 parameters documented in the schema (top, skip, filter, messageId, etc.). The description mentions no parameters, but the baseline score of 3 applies since the schema carries the full burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Retrieve') and resource ('attachment objects'), but fails to specify these are email attachments (omitting 'mail' from the name) and lacks scope clarification regarding the required messageId parameter. It does not distinguish from sibling get-mail-attachment.

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?

No guidance provided on when to use this versus get-mail-attachment (which retrieves content) versus add-mail-attachment. The critical dependency on messageId (required parameter) is not mentioned in the description.

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/alfredo-ia/ms-365-mcp-server'

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