Skip to main content
Glama

set_drive_file_permissions

Set link-sharing mode and file-level permissions for Drive files, including editor sharing rights and viewer copy prevention.

Instructions

Toggle link-sharing and common file-level sharing controls.

Side effects: mutates sharing policy. Use this for high-level toggles ("anyone with the link", editor share rights, viewer copy-prevention). For per-user/group permission changes use manage_drive_access. At least one of the three flags must be set. Requires the drive.file OAuth scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address (authenticated account).
file_idYesDrive file or folder ID.
link_sharingNo"off" removes anyone-with-link access; "reader", "commenter", or "writer" sets the link role. Omit to leave link sharing unchanged.
writers_can_shareNoTrue lets editors re-share; False restricts sharing to owner only.
copy_requires_writer_permissionNoTrue blocks viewers/commenters from copy/print/download; False allows.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It mentions 'Side effects: mutates sharing policy' and the required OAuth scope. However, it doesn't discuss potential reversibility, rate limits, or error conditions, which would add completeness.

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 concise, with 5 sentences that are well-structured and front-loaded with the main purpose. Every sentence adds value without unnecessary fluff.

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

Completeness5/5

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

Given that an output schema exists (so description doesn't need to explain return values) and the schema covers all parameters, the description provides sufficient context: purpose, side effects, usage guidance, and OAuth requirement. It is complete for this tool's complexity.

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%, so baseline is 3. The description summarizes the three toggle flags (link_sharing, writers_can_share, copy_requires_writer_permission) but does not add significant new meaning beyond what the schema already provides for each parameter.

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 clearly states the verb 'Toggle' and the resource 'link-sharing and common file-level sharing controls'. It distinguishes itself from the sibling 'manage_drive_access' by specifying that this tool is for high-level toggles while the sibling is for per-user/group changes.

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?

Explicitly tells when to use this tool (high-level toggles) and when not to (use manage_drive_access for per-user/group changes). Also states 'At least one of the three flags must be set' and the required OAuth scope, providing clear usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuntsDesk/ve-gws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server