Skip to main content
Glama

removePermission

Revoke a specific sharing permission from a Google Drive file or folder by supplying the file ID and permission ID; use listPermissions first to find the permission ID.

Instructions

Revokes a specific sharing permission from a Drive file or folder. Use listPermissions first to get the permissionId you want to remove.

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>",
      "permissionId": "<permissionId>"
    },
    "name": "removePermission"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe ID of the file or folder.
permissionIdYesThe ID of the permission to remove (from listPermissions).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.8/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 disclosure burden. It discloses the ordering dependency on listPermissions, which is genuine behavioral context, but says nothing about required authorization level, irreversibility of the revocation, or what happens to inherited access.

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?

Two short sentences, front-loaded with what the tool does and followed by the one dependency that matters. Nothing is padded or redundant.

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 simple two-parameter, fully documented tool with no output schema, the description covers purpose and the key prerequisite. The only gap is mutation safety detail, which matters more here because no annotations exist to cover it.

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%, with both fileId and permissionId documented in the schema. The description only restates that permissionId comes from listPermissions, adding no meaning beyond what the schema already says, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb ('Revokes') and resource ('a specific sharing permission from a Drive file or folder'), which reads clearly against sibling names like addPermission and updatePermission. It stops short of explicitly contrasting with those siblings, so an agent must infer the distinction from the verb alone.

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?

Gives concrete prerequisite guidance: call listPermissions first to obtain the permissionId. That is clear context for invocation order, though it offers no when-not guidance (e.g., distinguishing from updatePermission when you want to change rather than remove access).

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