Skip to main content
Glama

Search Drive

drive_search
Read-onlyIdempotent

Search Google Drive files across every connected account at once. Merged results show most recently modified first; plain words match filename and contents, with advanced query syntax available.

Instructions

Find files in Google Drive. Omit "account" to search EVERY connected Drive in parallel and get one merged list, most recently modified first; if one account fails the others still return and the failure is reported in "failures". Use "query" for plain words (matched against filename and file contents) and "drive_query" only when you need raw Drive query syntax, e.g. "mimeType = 'application/pdf' and modifiedTime > '2026-01-01T00:00:00'".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoFree text. Matched against both the file name and the file contents.
accountNoRestrict to one account. Omit to use every configured account at once.
drive_queryNoRaw Drive query syntax, ANDed with "query" when both are given.
max_resultsNoMaximum files to return (per account when searching all). Default 20.
include_trashedNoInclude files in the bin. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses parallel account search, merged result ordering, and partial failure semantics — behavior not captured in the annotations. This goes well beyond the readOnlyHint and idempotentHint annotations by explaining what happens when one account fails.

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?

Every sentence earns its place: purpose, default behavior, failure handling, and parameter selection guidance are packed into a compact, front-loaded description. No fluff or repetition of schema fields.

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

Completeness5/5

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

With no output schema, the description still covers the key return behavior (merged list, ordering, failure reporting) and explains all important parameter interactions. An agent has enough information to call the tool correctly without guessing.

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?

Although schema coverage is 100%, the description adds crucial meaning: 'query' matches filename and contents, 'drive_query' uses raw syntax and is ANDed with 'query', and 'max_results' is per account when searching all. These details are not inferable from the schema alone.

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 opens with 'Find files in Google Drive', a specific verb and resource, then immediately explains the multi-account search behavior that sets it apart from sibling tools like drive_list or drive_read. The distinction between plain query and raw drive_query further clarifies the tool's scope.

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 gives clear conditional guidance: omit 'account' to search all connected drives, use 'query' for plain words, and use 'drive_query' only when raw Drive syntax is required. It does not explicitly compare against sibling search tools like search_emails, but the usage context within this tool is unambiguous.

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