Skip to main content
Glama
Google Workspace MCP
by holms

Search Drive Files

search_drive_files

Search or list Google Drive files with query filters like name contains or MIME type to find documents for Google Workspace automation and agent workflows.

Instructions

Search or list files in Google Drive. Example queries: "name contains 'Invoice'" or "mimeType = 'application/vnd.google-apps.document'".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_drive_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
page_sizeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It reveals nothing about result ordering, pagination beyond the page_size name, whether shared drives or trash are included, or what permissions are needed for a Drive search.

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?

Two short sentences, front-loaded with the core purpose and followed by concrete examples. Nothing is wasted, though the examples could have been tied more explicitly to the parameters.

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

Completeness3/5

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

An output schema exists, so return values needn't be explained. Still, for a search tool with zero annotation coverage and zero schema description coverage, the definition leaves pagination behavior and empty-query semantics unstated, which an agent needs to call it correctly.

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 0%, so the description must compensate. The two example queries are genuinely useful because they reveal that query uses Google Drive's query language syntax, but page_size and the semantics of an empty/default query (presumably 'list all') are left unexplained.

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 pair and resource: 'Search or list files in Google Drive.' This is clearly distinct from read_drive_file, move_drive_file, or download_drive_file implied by the sibling set, though it doesn't explicitly name a boundary against them.

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 example queries implicitly show when this tool is appropriate (querying by name or mimeType), and 'search or list' hints that an empty query returns a listing. However, there is no explicit statement of when to use this versus read_drive_file or download_drive_file, and no exclusions or prerequisites.

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