Skip to main content
Glama

drive_list_files

Read-onlyIdempotent

Search Google Drive and return matching file metadata, including owners and sharing status, so you can inspect files before approving AI access.

Instructions

Search Google Drive and return matching file metadata (id, name, mime_type, owners, sharing status). Auto-approved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesDrive API 'q' search query syntax, not a plain-text search string, e.g. "name contains 'Foo'" or "fullText contains 'Foo'". See https://developers.google.com/drive/api/guides/search-files
reasonYesOne sentence: why are you calling this tool right now?
max_resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.3.0

TDQS

B3.2/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, so the safety profile is covered. The description adds the returned field list and the 'Auto-approved' note, but that note is ambiguous (approval-free execution? pre-vetted call?) and no pagination or result-limit behavior is disclosed.

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 with the action and the return payload front-loaded; no filler. 'Auto-approved' is terse but its meaning is murky, slightly weakening an otherwise efficient structure.

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?

With no output schema, enumerating the returned fields is valuable and correctly done. But for a search tool it omits result-limit/pagination behavior, the meaning of the required 'reason' field, and any routing to sibling Drive tools, leaving clear gaps.

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 coverage is 67%; the query parameter is well documented in the schema itself (Drive 'q' syntax with examples and a doc link), so the description need not repeat it. However max_results has no description anywhere, and the description adds nothing about parameter semantics, so it sits at the baseline.

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 ('Search') and resource ('Google Drive files') and even enumerates the returned metadata fields (id, name, mime_type, owners, sharing status). It is distinguishable from drive_get_file_metadata and drive_list_folder by the 'search' framing, though it never explicitly contrasts itself with those siblings.

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?

The description gives no when-to-use guidance, no prerequisites, and no pointer to alternatives such as drive_list_folder for browsing a known folder or drive_get_file_metadata for a known id. The agent must infer the selection from the name alone.

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

Deploy Server

Other Tools