Skip to main content
Glama

addPermission

Shares a Google Drive file or folder by adding a permission for a user, group, domain, or anyone with the link, with configurable access role and notification options.

Instructions

Shares a Drive file or folder by adding a new sharing permission. Supports sharing with a user, group, entire domain, or anyone with the link. Use listPermissions to see existing shares, updatePermission to change a role, or removePermission to revoke access.

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": {
      "fileId": "<fileId>",
      "type": "<type>",
      "role": "<role>"
    },
    "name": "addPermission"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesAccess level granted. Use owner only with transferOwnership=true.
typeYesGrantee type. 'user' and 'group' require emailAddress; 'domain' requires domain; 'anyone' is link sharing.
domainNoDomain to share with (required when type is 'domain').
fileIdYesThe ID of the file or folder to share.
emailAddressNoEmail address of the user or group (required when type is 'user' or 'group').
emailMessageNoCustom message to include in the notification email (only applies when sendNotificationEmail is true).
transferOwnershipNoSet to true when transferring ownership (role must be 'owner').
allowFileDiscoveryNoFor type 'domain' or 'anyone': whether the file can be discovered via search. Defaults to false (link-only).
sendNotificationEmailNoWhether Google should send a notification email (default: true for user/group, false for domain/anyone).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.1/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 behavioral burden; it establishes that this is a mutating share operation and what kinds of grantees exist. It says nothing about the caller's required access level, whether re-adding an existing grant is idempotent or errors, or side effects such as notification emails. Notification defaults and the ownership-transfer flag appear only in the schema, not the 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?

Three sentences with no waste: capability first, supported scope second, sibling routing third. Nothing is buried or repeated.

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 9-parameter mutation tool with no annotations and no output schema, the description covers purpose and alternatives well and the schema covers every parameter in detail. It stops short of stating authorization requirements, failure modes, or what the returned permission object looks like, which leaves real gaps for a write operation.

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% and each parameter, including enums and the owner/transferOwnership coupling, is documented in the schema itself. The description restates the grantee-type set but adds no syntax, defaults, or interaction rules beyond it, so the baseline 3 applies.

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 ("Shares a Drive file or folder by adding a new sharing permission") and immediately enumerates the grantee types supported. Combined with the sibling names, an agent can tell this creates a permission rather than listing, updating, or removing one.

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 routes the agent to three alternatives with their conditions: listPermissions for existing shares, updatePermission to change a role, removePermission to revoke. That is clear when-to-use-which guidance rather than an implied usage.

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