Skip to main content
Glama

Unified Search

search_unified
Read-onlyIdempotent

Search across Microsoft 365 emails, events, and files. Use a single query to retrieve results from multiple resources simultaneously.

Instructions

📖 Search across multiple Microsoft 365 resources (read-only, safe for unsupervised use)

Searches emails, events, and files simultaneously. Automatically routes to the appropriate API based on account type:

  • Personal accounts: Performs sequential searches for each entity type

  • Work/school accounts: Uses unified search API for parallel search

Args: query: Search query string (1-512 characters) account_id: Microsoft account ID entity_types: Types to search: 'message', 'event', 'driveItem' (default: all) limit: Maximum results per type (1-500, default: 50) use_cache: Whether to use cache (default: True) force_refresh: Bypass cache and fetch fresh data (default: False)

Returns: Dictionary with results grouped by entity type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
account_idYes
entity_typesNo
limitNo
use_cacheNo
force_refreshNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable context: automatic API routing based on account type, caching behavior via use_cache and force_refresh, and the safe read-only nature, exceeding what annotations provide.

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?

The description is well-structured with a lead summary, followed by details and clearly labeled Args/Returns sections. Every sentence adds value without redundancy.

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?

The description covers purpose, usage, parameters, and return format. Output schema exists, but description still summarizes return format. Missing edge cases or error handling, but sufficient for a search tool with rich annotations.

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

Parameters5/5

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

Schema has 0% coverage (no descriptions), but the description provides clear, concise explanations for all 6 parameters, including types, defaults, and constraints (e.g., query 1-512 chars, limit 1-500). This fully compensates for missing schema descriptions.

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 clearly states it searches multiple M365 resources (emails, events, files) simultaneously, with a specific verb and resource. It distinguishes from siblings like search_emails, search_events, etc. by using 'unified' and explaining simultaneous search.

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?

The description indicates when to use it (multi-resource search, read-only, safe) and provides account type routing behavior. It doesn't explicitly mention alternatives but the grouping of sibling tools implies this is for combined searches.

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/robin-collins/m365-mcp'

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