Skip to main content
Glama

list_spreadsheets

Read-only

Lists Google Drive spreadsheets in a specified folder, a default folder, or across My Drive and accessible shared drives when no folder is set. Use it to find spreadsheet IDs and titles.

Instructions

List all spreadsheets in the specified Google Drive folder. If no folder is specified, uses the configured default folder; if that's also unset, searches across 'My Drive' AND every shared drive the authenticated account can access (corpora='allDrives') — not just 'My Drive'.

A strict, less-flexible special case of list_files pre-filtered to the spreadsheet MIME type. For a different result cap or other file types, use list_files(folder_id, mime_type='application/vnd.google-apps.spreadsheet', ...) instead.

Args: folder_id: Optional Google Drive folder ID to search in. If not provided, uses the configured default folder or searches 'My Drive' and every shared drive the account can access. max_results: Maximum number of results to return (default 100, max 1000).

Returns: List of spreadsheets with their ID and title. Trashed files are excluded; to find one to restore, use get_file_metadata or restore_file with its file ID.

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_spreadsheets"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_idNo
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description adds substantial non-obvious behavior on top: the corpora='allDrives' scope when nothing is configured (a scope surprise an agent would otherwise not anticipate), the 10x result-cap ceiling, and that trashed files are silently excluded with a pointer to get_file_metadata/restore_file for recovering them.

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 scope-sensitive behavior before the Args block, and the Args/Returns structure is easy to scan. The Returns section is somewhat redundant since an output schema exists and the trashed-file note is repeated there, costing a little length.

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

Completeness5/5

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

For a two-parameter read tool this covers everything material: scope resolution, result cap, exclusion of trashed files, return shape, and the sibling alternative. The presence of an output schema means the return description is a bonus rather than a load-bearing gap-filler.

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

Parameters5/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 parameter burden and does so: folder_id is documented as optional with a three-step resolution order, and max_results is documented with both a default (100) and a hard maximum (1000) that the schema does not express. This is meaningful semantics beyond the raw schema.

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?

Opens with a specific verb and resource: "List all spreadsheets in the specified Google Drive folder." It then explicitly frames itself as "a strict, less-flexible special case of list_files pre-filtered to the spreadsheet MIME type," which lets an agent distinguish it from that sibling without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the fallback chain for when folder_id is omitted (configured default, then 'My Drive' plus all shared drives) and names the concrete alternative with its exact call signature: use list_files(folder_id, mime_type='application/vnd.google-apps.spreadsheet', ...) when a different cap or other file types are needed. That is an explicit when-to-use-this vs. when-to-use-that decision rule.

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