Skip to main content
Glama
mdwsk88

MS 365-21V MCP Server

by mdwsk88

Search My Mail

mail_search_messages

Locate emails in your Microsoft 365 mailbox by searching keywords in sender, subject, or body. Returns matching messages.

Instructions

Search messages in the signed-in user mailbox by keyword. Requires delegated Mail.Read. Chinese intents / 中文意图: 搜索邮件, 按关键词查邮件, 查找某封邮件.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNoNumber of messages to return, from 1 to 50.
queryYesSearch query, such as sender, subject, or body keywords.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the permission requirement ('Requires delegated Mail.Read') and the scope ('signed-in user mailbox'), which is useful. However, it does not disclose behavioral details like sorting, pagination, or folder scope beyond what the schema already provides.

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, with two primary sentences and a Chinese intent expansion. The main purpose is front-loaded and there is no fluff. The Chinese intents add some length but serve a multilingual intent-matching purpose, so it's not zero waste.

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 simple search tool with two parameters and no output schema, the description covers the essential aspects: purpose, permission, and query examples. It could explicitly state that it returns a list of messages, but this is implied by the name and the top parameter. Overall, it is sufficiently complete for its complexity.

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%, and the description does not add any parameter semantics beyond what the schema already explains. The 'by keyword' phrase mirrors the query parameter description, so there is no additional value.

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 states a specific verb ('Search'), resource ('messages in the signed-in user mailbox'), and method ('by keyword'). This clearly distinguishes it from siblings like mail_list_messages (which lists all messages) and mail_get_message (which retrieves a single message).

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 when a user wants to search for emails by keyword, and it notes the permission requirement. However, it does not explicitly mention alternatives or when not to use it, such as preferring search_mail for broader searches or mail_list_messages for listing without a keyword.

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