Skip to main content
Glama

manage_drive_access

Grant, update, revoke, or transfer ownership of Drive files and folders. Manage permissions for users, groups, domains, or anyone with batch support and optional expiration.

Instructions

Grant, batch-grant, update, revoke, or transfer ownership on a Drive item.

Side effects: all actions mutate permissions; transfer_owner permanently changes the file's owner. Notification emails are sent per send_notification. For read-only inspection use get_drive_file_permissions. Requires the drive.file OAuth scope (or higher for cross-domain transfers).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address (authenticated account).
file_idYesDrive file or folder ID.
actionYes"grant", "grant_batch", "update", "revoke", or "transfer_owner".
share_withNoFor "grant" — recipient email (user/group) or domain name (domain). Omit for share_type="anyone".
roleNoFor "grant" (default "reader") and "update": "reader", "commenter", or "writer".
share_typeNoFor "grant": "user", "group", "domain", or "anyone". Default "user".user
permission_idNoRequired for "update" and "revoke". Get it from get_drive_file_permissions.
recipientsNoFor "grant_batch": list of objects with keys email (or domain for domain shares), role, share_type, expiration_time.
send_notificationNoSend the recipient an email. Default True. Applies to grant/grant_batch user/group shares.
email_messageNoCustom body appended to the notification email.
expiration_timeNoRFC3339 deadline ("2026-06-01T00:00:00Z") after which the permission auto-revokes. Applies to grant/update.
allow_file_discoveryNoFor domain/anyone shares, True = indexable in search, False = link-only.
new_owner_emailNoRequired for "transfer_owner". Must be inside the same Workspace domain in most cases.
move_to_new_owners_rootNoAfter transfer, move the file to the new owner's My Drive root. Default False.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that all actions mutate permissions, transfer_owner permanently changes ownership, and notification emails are sent per send_notification. It also notes the OAuth scope requirement. This provides substantial behavioral context beyond the schema.

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 description is composed of five focused sentences, front-loading the core action and then covering side effects, alternatives, and auth requirements. It is efficient but could be slightly more concise by grouping related information.

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?

Given the tool's high complexity (14 parameters) and the presence of an output schema, the description provides a solid overview of functionality, side effects, and usage alternatives. It adequately covers the key behavioral aspects, though it could mention handling of different actions more explicitly.

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 the baseline is 3. The description does not add additional parameter-level meaning beyond the schema definitions, but it does explain side effects and relationships (e.g., send_notification applies to grant/grant_batch). This is adequate but not exceptional.

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 'Grant, batch-grant, update, revoke, or transfer ownership on a Drive item,' providing a specific verb and resource. It distinguishes itself from sibling tools like get_drive_file_permissions (read-only) by explicitly naming an alternative.

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

Usage Guidelines4/5

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

The description offers explicit guidance by stating 'For read-only inspection use get_drive_file_permissions' and mentions the required OAuth scope. However, it does not fully elaborate on when to choose this tool over other mutation tools like set_drive_file_permissions.

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