Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

set_drive_file_permissions

Control Google Drive file sharing and link access. Set who can view, comment, or edit via link, and restrict copying or sharing by editors.

Instructions

Sets file-level sharing settings and controls link sharing for a Google Drive file or folder.

This is a high-level tool for the most common permission changes. Use this to toggle "anyone with the link" access or configure file-level sharing behavior. For managing individual user/group permissions, use share_drive_file or update_drive_permission instead.

Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file or folder. Required. link_sharing (Optional[str]): Control "anyone with the link" access for the file. - "off": Disable "anyone with the link" access for this file. - "reader": Anyone with the link can view. - "commenter": Anyone with the link can comment. - "writer": Anyone with the link can edit. writers_can_share (Optional[bool]): Whether editors can change permissions and share. If False, only the owner can share. Defaults to None (no change). copy_requires_writer_permission (Optional[bool]): Whether viewers and commenters are prevented from copying, printing, or downloading. Defaults to None (no change).

Returns: str: Summary of all permission changes applied to the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_idYes
link_sharingNo
user_google_emailYes
writers_can_shareNo
copy_requires_writer_permissionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It clearly identifies this as a mutation, explains the effect of each optional setting, states that null means no change, and says it returns a summary of changes. It does not discuss side effects such as making the file publicly accessible or whether existing permissions are overwritten, but it is far more transparent than a minimal mutation description.

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?

The description is front-loaded with the core purpose, then gives clear usage routing before moving into a structured Args section. Every sentence adds value, and the parameter documentation is detailed without being bloated.

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 mutation tool with five parameters and no annotations, it covers purpose, alternatives, defaults, and return type. The main gap is that the required user_google_email is not explained in context: why it is needed and how it relates to the file being modified, so an agent may not know exactly whose email to supply.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates strongly: every parameter gets a custom explanation. link_sharing has value-by-value effects, and both boolean parameters get their consequences and default behavior. The only terse parameter is user_google_email, but it still identifies the expected value and requiredness.

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: 'Sets file-level sharing settings and controls link sharing for a Google Drive file or folder.' It also positions itself as a high-level tool for common permission changes, which distinguishes it from the more granular sibling permission tools.

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

Usage Guidelines5/5

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

It explicitly says when to use this tool: to toggle 'anyone with the link' access or configure file-level sharing behavior. It also names the alternatives for a different case: 'For managing individual user/group permissions, use share_drive_file or update_drive_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