Skip to main content
Glama

Drive List Drives

drive_list_drives
Read-onlyIdempotent

List shared Google Drives you belong to or look up one by drive ID to obtain the drive_id needed for listing files, while supporting pagination and query filters.

Instructions

List the shared drives the user is a member of, or look up one by drive_id. Use it to get a drive_id for drive_list_files; to search the files inside drives use drive_list_files. Returns drives (id, name, hidden, created_at, org_unit_id; what the user may do: can_add_children, can_edit, can_share, can_manage_members, can_download, can_delete_drive; restrictions: admin_managed_restrictions, domain_users_only, drive_members_only, copy_requires_writer_permission), count and next_page_token.

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

Input Schema

NameRequiredDescriptionDefault
queryNoFilter in Drive's shared-drive search syntax, e.g. "name contains 'Finance'" or "hidden = true"; omit to list every shared drive the user is a member of.
drive_idNoReturn only this shared drive, as a one-item list; page_size, page_token and query are ignored when it is given. Omit to list the user's shared drives.
page_sizeNoShared drives per page, 1 to 100.
page_tokenNoThe next_page_token from the previous response of this same call; omit for the first page.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of items in this response.
drivesNoShared drives on this page.
has_moreNoWhether another page is available.
fetched_atNoRFC3339 time when this response was fetched.
next_page_tokenNoOpaque token for the next page, or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds behavior beyond that: pagination via next_page_token, the one-item-list behavior for drive_id lookups, and the permission/restriction flags a caller can expect on each drive. It stops short of noting quota/rate-limit or auth-scope considerations, which is the only real gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The routing sentence is front-loaded and useful, but the long parenthetical enumerating every returned field (id, name, hidden, created_at, org_unit_id, plus permission and restriction flags) is bulky and largely duplicative of the output schema. It reads as one dense paragraph rather than a structured summary.

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?

With annotations, a full-coverage input schema, and an output schema present, the definition covers the essentials an agent needs: what it returns at a high level, pagination, and the drive_id shortcut. The only shortfall is redundancy rather than missing information.

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 description coverage is 100% and the schema already documents query syntax, drive_id precedence (page_size/page_token/query ignored), page_size range, and page_token origin. The description adds essentially nothing beyond that, so the baseline of 3 applies.

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?

The description opens with a specific verb and resource: "List the shared drives the user is a member of, or look up one by drive_id." It also distinguishes itself from drive_list_files for the file-search case, so an agent can separate the two sibling tools 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?

It gives explicit routing guidance in both directions: use this to obtain a drive_id for drive_list_files, and use drive_list_files to search inside drives. The when-to-use condition and the named alternative are both stated, leaving nothing to inference.

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