Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

list-emails

Retrieve recent emails from a chosen Microsoft 365 folder, such as inbox, sent, or drafts, to review messages quickly with a configurable count.

Instructions

Lists recent emails from your inbox

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list-emails"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of emails to retrieve (default: 10, max: 50)
folderNoEmail folder to list (e.g., 'inbox', 'sent', 'drafts', default: 'inbox')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses almost nothing: no statement about whether this is read-only (implied but not declared), no ordering guarantee beyond the ambiguous "recent", no pagination behavior, no auth requirements, and no indication of what fields each returned email contains.

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 short sentence with no wasted words, front-loaded with the verb. It is arguably under-specified rather than bloated, so efficiency is not the problem.

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?

This is a simple two-parameter read tool, so it does not need much, but with no annotations and no output schema the description should at least say what a returned email looks like and confirm read-only behavior. The mismatch between "your inbox" and the folder parameter also leaves the agent guessing about scope.

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 both parameters are already fully documented with defaults and a max, making 3 the baseline. The description adds no meaning beyond that, and "from your inbox" actually sits awkwardly with the folder parameter, which permits 'sent' and 'drafts'.

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?

"Lists recent emails" states a clear verb and resource, which is enough to distinguish this from siblings like move-emails or delete-email. It stops short of distinguishing it from search-emails, so an agent cannot tell from the description alone which one to pick for a filtered query.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of the obvious alternative, search-emails, which shares the same resource. The word "recent" hints at a recency-based listing but never states that this tool is unfiltered or that searching requires a different tool.

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