Skip to main content
Glama

Drive List Permissions

drive_list_permissions
Read-onlyIdempotent

Lists who can access a Drive file or folder and their access level, or retrieves one grant by permission_id to find permission IDs before updating or removing sharing.

Instructions

List who has access to a Drive file or folder and at what level, or look up one grant by permission_id. Use it before drive_share_file (update mode) or drive_unshare_file to find the permission_id. Returns permissions (id, type, role, email_address, domain, display_name, allow_file_discovery, pending_owner, expires_at in the account time zone, deleted), count and next_page_token.

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": {
      "file_id": "<file_id>"
    },
    "name": "drive_list_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesDrive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL.
page_sizeNoPermissions per page, 1 to 200.
page_tokenNoThe next_page_token from the previous response of this same call; omit for the first page.
permission_idNoReturn only this permission, as a one-item list; page_size and page_token are ignored when it is given. Omit to list every grant on the file.

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds value by enumerating the returned permission fields and noting expires_at is in the account time zone, plus count and next_page_token. It stops short of describing ordering or rate limits, but with annotations and an output schema in place the remaining gap is minor.

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?

Three sentences, front-loaded with purpose, then workflow, then return shape — no filler. The return-field enumeration is somewhat redundant given an output schema exists, which is the only inefficiency.

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 read-only, 4-parameter listing tool with full schema coverage, annotations, and an output schema, nothing needed for correct invocation is missing. Purpose, prerequisite workflow, mode selection, and pagination surface are all present.

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 file_id, page_size, page_token, and permission_id are already fully documented, including that page_size/page_token are ignored when permission_id is given. The description only hints at the permission_id mode without adding format details or examples beyond the schema, 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?

States a specific verb and resource ('List who has access to a Drive file or folder and at what level') and covers two distinct modes: full listing or single grant by permission_id. It is clearly separable from drive_list_drives, drive_get_file, and drive_list_files, which deal with drives and files rather than access grants.

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 prescribes the workflow: call it before drive_share_file (update mode) or drive_unshare_file to obtain a permission_id. It also states the branch condition in the schema-facing sentence ('Omit to list every grant on the file'), so the agent knows which mode to pick and why.

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