Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by akilja24

update_drive_permission

Modify an existing Google Drive file or folder permission to change access role or set an expiration time.

Instructions

Updates an existing permission on a Google Drive file or folder.

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 update (from get_drive_file_permissions). Required. role (Optional[str]): New role - 'reader', 'commenter', or 'writer'. If not provided, role unchanged. expiration_time (Optional[str]): Expiration time in RFC 3339 format (e.g., "2025-01-15T00:00:00Z"). Set or update when permission expires.

Returns: str: Confirmation with updated permission details.

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": "update_drive_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
file_idYes
permission_idYes
expiration_timeNo
user_google_emailYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.13.1

TDQS

A3.5/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 add useful partial-update semantics ('If not provided, role unchanged') and a Returns note, but it omits authorization requirements, whether permission type (user/group/domain) can change, notification behavior, and reversibility of role changes.

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?

The purpose statement is front-loaded, and the Args/Returns block is scannable and well organized. The 'Returns' section is slightly redundant given an output schema exists, but overall there is little wasted wording.

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?

All five parameters are covered and the return type is noted, which is adequate for a simple mutation tool. It still lacks the auth/permission preconditions an agent needs before calling a Drive permission mutation, and it offers no guidance on inherited-permission side effects for folders.

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 compensate, and it largely does: it documents all five parameters, marks the three required ones, enumerates valid role values ('reader', 'commenter', 'writer'), and gives an RFC 3339 example for expiration_time. It does not explain whether expired permissions are deleted or just ignored, leaving a small gap.

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 opening sentence names a specific verb and resource — 'Updates an existing permission on a Google Drive file or folder' — which clearly separates it from create/set/remove permission operations. It also points at get_drive_file_permissions as the source of the permission_id, aiding disambiguation. It stops short of explicitly contrasting with set_drive_file_permissions or share_drive_file, which is why it is not a 5.

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 by 'existing permission' and by the note that permission_id comes from get_drive_file_permissions, which gives an agent a workflow entry point. However, there is no explicit when-to-use guidance versus set_drive_file_permissions, share_drive_file, or remove_drive_permission, and no stated prerequisites such as owner-level 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