Skip to main content
Glama

update_permission

Destructive

Change the access role (reader, commenter, or writer) for an existing Google Drive file or folder permission to adjust sharing rights.

Instructions

Change the role on an existing permission for a file or folder.

Args: file_id: The Google Drive file or folder ID. permission_id: The permission ID to update (from list_permissions). role: New role. One of: 'reader', 'commenter', 'writer'.

Returns: Updated permissionId and role.

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": {
      "file_id": "<file_id>",
      "permission_id": "<permission_id>",
      "role": "<role>"
    },
    "name": "update_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYes
file_idYes
permission_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.6/5.0
Behavior3/5

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

DestructiveHint=true is already declared in annotations, and the description adds nothing about the consequence of the mutation: that replacing a role downgrades access, can revoke a user's existing capabilities, or what happens on invalid role. It does enumerate the allowed role values, which the schema omits, but that is closer to parameter semantics than behavioral risk disclosure.

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?

Front-loaded one-sentence purpose followed by a compact Args list and a Returns line; every element earns its place. The Returns line mildly duplicates the output schema but is short enough not to be waste.

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 three-required-parameter mutation tool with no schema descriptions, the definition covers inputs and the role domain, but omits the operational context that matters most for a destructive permission change: required authorization, effect on the subject's prior access, and whether the change is reversible.

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 coverage is 0% (all three parameters are bare strings with no descriptions), so the description carries the full burden and largely meets it: file_id is identified as a Drive file or folder ID, permission_id is scoped to list_permissions output, and role is constrained to reader/commenter/writer, closing a real gap since the schema declares role as an unconstrained string with no enum.

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?

'Change the role on an existing permission for a file or folder' names a specific verb (change role) and resource (permission on a Drive item), which cleanly separates it from list_permissions and remove_permission. It stops short of explicitly naming those siblings, so differentiation is inferable rather than stated.

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?

The parenthetical '(from list_permissions)' implies the ordering prerequisite that the permission_id must be discovered first, which is genuine usage context. There is no statement of when to prefer this over remove_permission (to revoke fully) or batch_update (for multiple changes), and no prerequisites about ownership or admin rights.

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