Skip to main content
Glama

Search OneDrive files

m365_files_search
Read-onlyIdempotent

Files in a mailbox user's OneDrive whose name or words match: name, size, kind, when changed and its link. Free. Free.

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": "m365_files_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
mailboxNoOne of the mailboxes the agent may act as; optional when only one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds that results include name, size, kind, changed date, and link, which is useful context, but it does not explain pagination, limit behavior, or mailbox scope. The trailing 'Free. Free.' is noise and adds no clarity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The description is short but poorly structured: it begins with a sentence fragment rather than a clear verb, and repeats 'Free. Free.' unnecessarily. It wastes space on redundancy while omitting important details like how query matching works or how limit is applied.

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?

With no output schema and partial parameter descriptions, the description should clarify query semantics, limit behavior, and mailbox context. It only vaguely states that name or words are matched and lists return fields, leaving an agent without enough information to call the tool correctly in all cases.

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

Parameters2/5

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

Schema description coverage is only 33%, with the mailbox parameter described in the schema but query and limit undocumented. The description hints that query matches names or words, but it says nothing about the limit parameter or the expected query format, failing to compensate for the low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description indicates it finds files in a user's OneDrive whose name or words match a query, and lists metadata fields like name, size, kind, changed date, and link. However, it lacks a clear verb and does not distinguish itself from sibling m365_files_read, which likely reads file content rather than searching by name.

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 guidance on when to use this tool versus alternatives such as m365_files_read, files_search, or google_drive_search. The only implied usage is searching by matching names or words, with no exclusions or context provided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources