Skip to main content
Glama
kharonx
by kharonx

search-m365

search-m365
Read-onlyIdempotent

Search Microsoft 365 mail, calendar, Teams chats, SharePoint, and OneDrive using KQL queries. Retrieve pointers to full content across sources via one unified search.

Instructions

Cross-source Microsoft 365 search (Mail, Calendar, Teams messages, SharePoint, OneDrive). KQL supported. Restriction from Graph: driveItem/drive/site/list/listItem can be combined in one call; message, event and chatMessage must each be searched in a SEPARATE call. Use the returned pointers with dedicated tools to fetch full content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoResult offset for paging (default 0)
sizeNoNumber of results (default 25)
queryYesSearch query (KQL supported), e.g. "AI Workshop 3.0"
entityTypesNoEntity types to search (default ["driveItem","site","listItem"]). message/event/chatMessage must be searched alone.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, and non-destructive behavior. The description adds the Graph grouping constraint and clarifies that results are pointers, not full content, which materially shapes follow-up calls. It could mention pagination or result limits, but those are already exposed in the schema.

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?

Three dense sentences: scope first, then query capability, then the crucial Graph constraint and follow-up behavior. No filler or redundancy; every sentence earns its place.

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 cross-source search tool with no output schema, the description tells the agent what comes back (pointers) and what to do next, and documents the important entity-type restriction. It would be slightly stronger with an explicit statement that full content retrieval requires a second request via the dedicated tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds value by documenting KQL support, giving an example query, and explaining the entity-type grouping rule beyond the schema's enum. It does not need to re-describe from/size because the schema already covers them.

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?

States a specific verb ('search') and full scope ('Microsoft 365') across Mail, Calendar, Teams, SharePoint, and OneDrive, and is clearly a cross-source alternative to the many source-specific search siblings. The Graph combination restriction further reinforces what the tool spans.

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?

Gives explicit operational guidance: KQL is supported, which entity types can be combined in one call, and that message, event, and chatMessage must be searched separately. It also directs the agent to use dedicated tools for full content. However, it does not explicitly tell the agent when to choose search-m365 over dedicated source-specific search tools like search-drive-items or search-sites.

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

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/kharonx/mcp_gateway'

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