Skip to main content
Glama

list_recent_files

Read-only

Find recently modified Google Drive files across My Drive and accessible shared drives, ordered by modification time, with optional day, MIME type, and result-count filters.

Instructions

List recently modified files in Drive, newest first, across 'My Drive' AND every shared drive the authenticated account can access (corpora='allDrives').

Args: max_results: Maximum number of files to return (default 20, max 100). days: If provided, only return files modified within the last N days. mime_type: Optional MIME type filter.

Returns: List of files with id, name, mime_type, modified_time, owners, and web_link, ordered by modification time descending.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
mime_typeNo
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds the substantive behavioral fact that the query spans all shared drives via corpora='allDrives' rather than only My Drive. It also discloses ordering (modification time descending) and the max_results ceiling of 100, which the schema does not express. Return field enumeration is partly redundant with the declared output schema.

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?

Front-loaded with the key scope statement, then cleanly organized into Args and Returns sections. The Returns block duplicates information the output schema already provides, which is mild waste, but nothing else is padded.

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?

For a three-optional-parameter read tool with annotations and an output schema, the definition covers scope, ordering, filters, and the result cap — enough to call it correctly. Remaining gaps are minor formatting details (mime_type syntax, what happens when the days window yields more than max_results, pagination).

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 description coverage is 0%, so the description carries the full burden and does document all three parameters: max_results with a default (20) and an explicit cap (100) that the schema lacks, days as a recency window in days, and mime_type as an optional MIME filter. The descriptions are functional but thin — e.g., mime_type gives no format example and days gives no boundary semantics (inclusive/exclusive, calendar vs. rolling).

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 and resource ('List recently modified files'), plus scope ('newest first, across My Drive AND every shared drive... corpora=allDrives'), which is a real disambiguator versus a narrower Drive listing. It does not name any sibling (e.g., list_files, search_files) to contrast with, so differentiation is implied rather than explicit.

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 by the 'recently modified' framing and the optional 'days' window, which tell an agent this is for recency-based browsing. There is no explicit when-to-use guidance, no exclusion of other listing/search tools, and no stated prerequisites or pagination/build-up behavior.

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