Skip to main content
Glama

onedrive_search_files

Read-onlyIdempotent

Search files in OneDrive. Supply a concise reason and context for the user's activity record. These explanations do not grant permission. Listed tools may require an account connection or permission change in Leash; follow any access guidance returned by the tool and never bypass a denial.

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": {
      "reason": "<reason>",
      "context": "<context>",
      "input": "<input>"
    },
    "name": "onedrive_search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
reasonYesWhy this access is necessary to fulfill the user's request
contextYesThe user request or task that prompted this action; omit unnecessary private details

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety behavior is covered structurally. The description adds genuinely useful behavioral context that annotations cannot express: the reason/context text is audit-only and does not authorize access, and permission denials must not be bypassed. It stops short of describing what the search matches or what results look like, and there is no output schema to fill that gap.

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 purpose statement is front-loaded in the first sentence and the rest is short. The two closing sentences read as boilerplate shared across the Leash tool family rather than tool-specific content, but they are brief and not harmful.

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?

This is a nested-object tool with a required `query` object whose keys are unconstrained additionalProperties and entirely undescribed, and there is no output schema. The description allocates its space to audit and permission boilerplate while leaving the search input semantics and result shape unexplained, so an agent cannot tell what `query` accepts.

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 67%, so baseline 3 applies; the two audit parameters (reason, context) are already documented in the schema. The description merely restates that a concise reason and context are required, and says nothing about the nested `query` object, which is the actual search payload and is undocumented in both places.

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?

"Search files in OneDrive" gives a specific verb and resource, so the agent knows exactly what the tool does. It does not distinguish this tool from close siblings such as onedrive_list_files or onedrive_list_folder_files, which matters since search vs. listing is a real selection decision.

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 by framing the call as being in service of a user request, but gives no explicit when-to-use or when-not-to-use criteria and never contrasts search with the sibling list tools. The access guidance (account connection / permission change in Leash) is conditional advice rather than tool-selection guidance.

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.