Skip to main content
Glama

List Google Docs

list_documents
Read-only

Retrieve a list of Google Docs you can access, sorted by most recently modified. Filter by name and paginate results.

Instructions

List Google Docs the user can access in Google Drive, most recently modified first. Optionally filter by text contained in the document name (search). Returns documentId, name, URL, createdTime and modifiedTime, plus nextPageToken for pagination. To search inside document content use search_documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of documents to return (1-100).
searchNoOnly include documents whose name matches this text (case-insensitive; Drive matches words starting with it).
pageTokenNonextPageToken from a previous list_documents call, to get the next page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds ordering behavior, the optional name filter's semantics, the pagination contract (nextPageToken), and the returned field set — genuine context beyond the annotations, though it does not mention rate limits or Drive permission nuances.

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?

Three tight sentences, front-loaded with the core action and scope, then filtering, then return shape, then the sibling routing. No filler and no repetition of the title.

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?

With no output schema, the description usefully enumerates return fields and the pagination token, covers the filter option, and routes to search_documents for content search. An agent has everything needed to call it correctly on the first attempt.

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 the baseline is 3 and the schema already documents limit, search, and pageToken in detail, including the case-insensitive prefix-matching nuance. The description only restates the search-as-name-filter behavior, adding little beyond the structured data.

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 ('List Google Docs'), plus scope ('the user can access in Google Drive') and ordering ('most recently modified first'). It also names the sibling it is not — search_documents — so an agent can distinguish the two 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 to use search_documents when searching inside document content, which is the one plausible confusion for this tool. It also notes the `search` param filters names only, reinforcing when this tool applies versus the content-search alternative.

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