Skip to main content
Glama

search_spreadsheets

Read-only

Find Google Drive spreadsheets by name or content across My Drive and accessible shared drives; use it for spreadsheet-only results instead of general file search.

Instructions

Search for spreadsheets in Google Drive by name or content, across 'My Drive' AND every shared drive the authenticated account can access (corpora='allDrives').

A strict, less-flexible special case of search_files pre-filtered to the spreadsheet MIME type. For folder-scoped search or other file types, use search_files(query, mime_type='application/vnd.google-apps.spreadsheet', ...) instead.

Args: query: Search query string. Searches in file name and content. Examples: "budget 2024", "sales report", "project tracker" max_results: Maximum number of results to return (default 20, max 100)

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_spreadsheets"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest: it names the corpora='allDrives' scope, states trashed files are excluded, and routes recovery to other tools. What it does not cover is result ordering, truncation behavior beyond max_results, or auth/permission implications, which is a modest gap for an account-scoped search.

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?

Front-loaded with the scope constraint before the sibling comparison, then organized into Args and Returns blocks. Every sentence carries a decision-relevant fact; nothing is padding.

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-only search, the definition covers scope, query semantics, result cap, exclusions, and where to go next. An output schema exists, so the Returns block is largely confirmatory rather than load-bearing, and nothing an agent needs to invoke it correctly is missing.

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 must compensate, and it mostly does: query is defined as matching file name and content with concrete example queries, and max_results gets a stated default of 20 and a maximum of 100 that is absent from the schema. It does not disclose query syntax (phrases, operators, negation), leaving the most ambiguous parameter only partly specified.

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?

States a specific verb and resource (search spreadsheets in Google Drive) and immediately bounds scope to both 'My Drive' and every accessible shared drive. It explicitly differentiates itself from the sibling search_files as a pre-filtered special case, so an agent can choose between them 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?

Explicitly says when to use this tool and when to use the alternative: folder-scoped search or other MIME types should go through search_files with the spreadsheet mime_type. It also tells the agent that trashed files are excluded and points to get_file_metadata/restore_file for recovery, which prevents a predictable dead end.

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