Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by akilja24

remove_drive_permission

Revokes access to a Google Drive file or folder by removing a specified permission, so you can control who can still view or edit shared content.

Instructions

Removes a permission from a Google Drive file or folder, revoking access.

Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file or folder. Required. permission_id (str): The ID of the permission to remove (from get_drive_file_permissions). Required.

Returns: str: Confirmation of the removed permission.

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": {
      "user_google_email": "<user_google_email>",
      "file_id": "<file_id>",
      "permission_id": "<permission_id>"
    },
    "name": "remove_drive_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
permission_idYes
user_google_emailYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the effect ('revoking access') but says nothing about whether revocation is reversible, what permissions the caller needs, what happens if the permission_id is invalid or already gone, or the consequences for sharing links on the file.

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 opening sentence is front-loaded and clear, but the Args block largely duplicates structured schema data (types and 'Required.' on each parameter) and the Returns line duplicates the existing output schema, so a share of the text does not earn its place.

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?

For a three-parameter destructive operation with no annotations and no schema descriptions, the definition should say more about authorization and irreversibility. The Returns section is unnecessary given the output schema exists, while the behavioral gaps it leaves are more consequential.

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 0%, so the description must compensate, and it does document all three parameters with types and required status. The only genuinely added meaning is the provenance of permission_id; file_id and user_google_email receive no format or example detail beyond restating 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?

The description opens with a specific verb and resource, 'Removes a permission from a Google Drive file or folder,' and adds the effect ('revoking access'). It does not explicitly distinguish itself from the sibling update_drive_permission or set_drive_file_permissions, but the action is unambiguous.

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?

There is a useful workflow hint that permission_id comes 'from get_drive_file_permissions,' which tells the agent the prerequisite step. However, there is no guidance on when to use this versus update_drive_permission or set_drive_file_permissions, and no note on required ownership or admin rights.

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