Skip to main content
Glama

listPermissions

Retrieve all sharing permissions for a Drive file or folder to see who has access and their roles, such as reader, commenter, writer, or owner.

Instructions

Lists all sharing permissions on a Drive file or folder. Shows who the file is shared with (users, groups, domains, anyone) along with their roles (reader, commenter, writer, owner, etc.). Use addPermission/updatePermission/removePermission to change sharing.

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": {
      "fileId": "<fileId>"
    },
    "name": "listPermissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe ID of the file or folder whose permissions to list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the return shape in useful terms (grantee types: users, groups, domains, anyone, plus roles reader/commenter/writer/owner). It says nothing about required authorization level, whether listing is paginated, or what happens for an unshared/not-found file — meaningful gaps for a permissions-inspection tool on sensitive data.

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 short sentences, front-loaded with the core action, then the return content, then the alternative routing. Nothing is redundant and no sentence is padding.

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?

For a one-parameter read tool with no output schema, the description covers purpose, result contents, and sibling routing adequately. The remaining omission — authorization requirements and result-set size/pagination — is the only thing an agent might need before calling.

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% and there is a single required parameter, so the schema already documents fileId fully. The description's phrase "on a Drive file or folder" only echoes the schema's own wording that the ID may refer to a folder, adding no syntax or format guidance beyond it.

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 ("Lists all sharing permissions on a Drive file or folder") and immediately scopes the result set ("all sharing permissions"), which distinguishes it from the sibling mutation tools. An agent can tell what this returns without opening the schema.

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

Usage Guidelines4/5

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

The closing sentence explicitly routes mutation intent to addPermission/updatePermission/removePermission, so the read-vs-write boundary is unambiguous. It does not spell out preconditions (e.g. caller must have access to the file), but the alternative-naming is clear and actionable.

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