Skip to main content
Glama

remove_permission

Destructive

Revoke access to a Google Drive file or folder by removing a specified permission ID. Use it to clean up sharing and restrict who can view or edit a file.

Instructions

Revoke a permission on a file or folder.

Args: file_id: The Google Drive file or folder ID. permission_id: The permission ID to remove (from list_permissions).

Returns: Confirmation with fileId, permissionId, and action taken.

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>",
      "permission_id": "<permission_id>"
    },
    "name": "remove_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
permission_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.5/5.0
Behavior3/5

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

The destructiveHint=true annotation already signals that this mutates and removes access. The description adds the response shape (fileId, permissionId, action taken) but says nothing about irreversibility, required permission level, or propagation/audit effects, which are the behaviors an agent would actually want here.

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?

Two short, front-loaded sections with no filler; the action statement comes first and the parameter/return notes follow. The Args/Returns docstring scaffolding is slightly mechanical but costs little.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so restating return fields is redundant but harmless. For a destructive, two-required-parameter access-control operation, the description omits the operational risks (irreversibility, auth requirements) that would make it genuinely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load, and it does: file_id is identified as a Drive file OR folder ID (broadening what the bare title suggests), and permission_id is scoped to IDs obtained from list_permissions, establishing provenance. It stops short of ID format examples but meaningfully exceeds the schema.

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?

"Revoke a permission on a file or folder" states a specific verb and resource, clearly separating it from list_permissions and update_permission by action type. It does not explicitly name a sibling, but the distinction is inferable 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 Guidelines3/5

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

Usage is implied rather than stated: the parenthetical "(from list_permissions)" hints at the preceding discovery step, which is a useful workflow cue. However, there is no explicit when-to-use guidance, no prerequisites (e.g. ownership requirement), and no mention of when to prefer update_permission instead.

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