Skip to main content
Glama
bkbaheti

MCP Google Multi-Account Server

by bkbaheti

drive_search_files

Search Google Drive for files by name, type, or content across My Drive and Shared Drives. Supports raw query syntax and optional drive restriction.

Instructions

Search for files in Google Drive. Searches across My Drive and all Shared Drives the user is a member of by default; pass driveId to scope the search to a single Shared Drive (discover IDs with drive_list_shared_drives). Supports shorthand syntax: type:document, type:spreadsheet, type:pdf, type:folder, type:image, type:video, type:audio (converted to mimeType queries), and content:keyword (searches inside file contents via fullText). Also accepts raw Drive API query syntax (e.g., "name contains 'report'").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesDrive search query (e.g., "name contains 'report'")
driveIdNoRestrict search to a single Shared Drive (omit to search My Drive + all Shared Drives)
accountIdYesThe Google account ID, alias, or email
pageTokenNoToken for pagination
maxResultsNoMaximum number of results (default: 20)
Behavior4/5

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

With no annotations, the description carries the full burden. It explicitly discloses the default search scope (My Drive + all Shared Drives), the conversion of shorthand type: queries to mimeType queries, and content: using fullText. It also mentions raw API query syntax. This goes beyond basic behavior, though it omits details like result fields or pagination limits beyond 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.

Conciseness5/5

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

The description is concise, front-loaded with the main purpose, and every sentence provides useful detail without fluff. It packs substantial information about scope, shorthand, and raw syntax into a compact paragraph.

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?

Given no output schema and moderate complexity, the description is quite complete. It covers the main query semantics and scoping, but doesn't explicitly mention pagination behavior or the fields returned. Since there is no output schema, these are minor gaps, making 4 appropriate.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds significant value for the 'query' parameter by explaining shorthand syntax and fullText behavior, and for 'driveId' by clarifying the default scope. This raises the score above baseline.

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 the tool's purpose: 'Search for files in Google Drive.' It specifies both the action (search) and the resource (files), and distinguishes it from sibling tools like drive_list_files by emphasizing query-based search across multiple scopes. The detailed syntax options reinforce the distinct purpose.

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 context on when to use the tool: searching across My Drive and all Shared Drives by default, and how to restrict via driveId. It also points to drive_list_shared_drives for ID discovery. However, it doesn't explicitly contrast with drive_list_files or explain when to use one over the other, which would make it a 5.

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/bkbaheti/google-multi-account-mcp'

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