Skip to main content
Glama
M365 Assistant MCP Server

M365 Assistant MCP Server

by ryaker

onedrive-search

Locate documents by searching OneDrive files by name or content, returning matching results with a configurable count.

Instructions

Search for files in OneDrive by name or content

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "onedrive-search"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of results to return (default: 25, max: 50)
queryYesSearch query to find files

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?

No annotations are supplied, so the description carries the full disclosure burden and mostly does not meet it. It does not say the operation is read-only, whether it searches only the user's drive or shared items, whether there are rate limits, or how results are ordered or paginated (beyond the count parameter 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single nine-word sentence with zero padding and the core capability front-loaded. It is efficiently sized, though the brevity leaves little structure to work with.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool this is close, but there is no output schema and the description says nothing about what a result contains (e.g., file IDs needed to chain into onedrive-download or onedrive-share) or how the search scope is bounded. An agent can invoke it, but cannot predict its return shape or safely plan follow-up calls.

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 documented; the baseline is therefore 3. The phrase 'by name or content' adds a small amount of meaning about what the query string is matched against, but nothing about syntax, operators, or matching behavior.

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?

States a specific verb and resource ('Search for files in OneDrive') plus the matching basis ('by name or content'), so the agent knows exactly what it does. It never distinguishes itself from the sibling 'onedrive-list', leaving the search-vs-browse boundary to inference.

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 explicit when-to-use guidance, no statement of prerequisites or auth requirements, and no mention of when a different tool (e.g., onedrive-list) would be more appropriate. Only the phrase 'by name or content' weakly hints at the use case of searching by a known keyword.

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