Skip to main content
Glama

Mail

ms_mail
Read-onlyIdempotent

Read recent Microsoft 365 emails: list messages with previews, open full message bodies or attachments by ID, filter by unread, flagged or important, and browse mail folders.

Instructions

Read the user's recent emails from Microsoft 365. Without message_id: lists emails with preview text. With message_id: returns the full email body. Use folders: true to list mail folders, folder to read from a specific folder, attachments with message_id to list attachments, or filter for quick filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of emails to return (1-25, default 10)
filterNoFilter shortcut: "unread", "flagged", "attachments", "important"
folderNoFolder name or ID (e.g. "Inbox", "Sent Items"). With filter, defaults to Inbox — pass "all" to search every folder including Deleted Items.
searchNoSearch keyword to filter emails (KQL)
foldersNoList all mail folders with unread counts
message_idNoEmail message ID for full body drill-down
attachmentsNoWhen used with message_id, list attachments instead of body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered. The description adds useful behavioral detail beyond that: preview text vs. full body return shape, and which parameter combination triggers which mode. It does not mention pagination, volume caps, or auth prerequisites.

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?

A single dense paragraph with the core action front-loaded and mode behaviors following. Every clause maps to a real parameter; no filler. Slightly packed but readable.

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, open-world list/drill-down tool with no output schema, the description plus the fully documented schema covers the modes an agent needs to select and call correctly. Missing only edge behavior like pagination or result limits, which are minor here.

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%, so the schema already documents all 7 parameters including the folder default and the filter shortcuts. The description restates the same mode mappings rather than adding syntax or interaction rules beyond what the schema provides, so the baseline 3 applies.

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?

The description states a specific verb and resource ('Read the user's recent emails from Microsoft 365') and separates the two operating modes (list vs. full-body drill-down). It does not, however, distinguish itself from siblings like ms_search or ms_chat, which an agent might reasonably confuse with mail retrieval.

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?

It gives explicit conditional usage for nearly every parameter: no message_id lists previews, message_id returns full body, folders:true lists folders, attachments with message_id lists attachments, filter for quick filters. It stops short of stating when NOT to use this tool (e.g., vs. ms_search for cross-content search).

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