Skip to main content
Glama

listDriveFiles

Lists Google Drive files and filters them by type, name or content query, or modification date, with sorting and result limits.

Instructions

Lists files in your Drive, optionally filtered by type (document, spreadsheet, presentation, form, pdf), name/content query, or modification date.

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": "listDriveFiles"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoSearch query to filter files by name or content.
orderByNoSort order for results.modifiedTime
fileTypeNoFilter by file type. Defaults to all types.all
maxResultsNoMaximum number of files to return (1-100).
modifiedAfterNoOnly return files modified after this date (ISO 8601 format, e.g., "2024-01-01").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. "Lists" and "your Drive" do convey a non-destructive, owner-scoped read, which is genuinely useful, but nothing is said about result truncation, pagination, or what happens when more than maxResults files match — a real gap for a list tool capped at 100.

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?

A single front-loaded sentence with the purpose first and the three filter dimensions enumerated compactly. No filler, no repetition of the tool name, nothing that could be cut.

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?

For a 5-parameter read tool with no annotations and no output schema, the description is adequate on inputs but silent on the return shape (what fields a file entry has) and on pagination behavior. An agent knows what to ask for but not what it will get back.

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 100%, so every parameter is already documented with types, enums, ranges, and defaults. The description restates fileType, query, and modifiedAfter but omits orderBy and maxResults entirely, adding no meaning beyond the schema.

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?

"Lists files in your Drive" gives a specific verb and resource, and the filter summary (type, query, modification date) makes the scope concrete. It also implicitly separates this from shared-drive or folder-scoped siblings by saying "your Drive," though it never names an alternative explicitly.

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?

Usage is implied rather than stated: the agent can infer this is the general-purpose file enumeration tool, but there is no guidance on when to prefer listSharedWithMe, listFolderContents, listSharedDrives, or readDriveFile instead. No prerequisites or exclusion conditions are given.

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