Skip to main content
Glama

updatePermission

Change the role or access level of an existing file or folder sharing permission. Retrieve the permissionId with listPermissions first, then set reader, commenter, writer, organizer, or owner as needed.

Instructions

Changes the role (access level) of an existing sharing permission. Use listPermissions first to get the permissionId.

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>",
      "permissionId": "<permissionId>",
      "role": "<role>"
    },
    "name": "updatePermission"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesNew access level. Use owner only with transferOwnership=true.
fileIdYesThe ID of the file or folder.
permissionIdYesThe ID of the permission to update (from listPermissions).
transferOwnershipNoSet to true when transferring ownership (role must be 'owner').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A3.7/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 burden; it does disclose that this is a mutation limited to an existing permission's role, which is useful scope information. However, it says nothing about required authorization, the side effect that lowering a role revokes access, or whether ownership transfer is a privileged escalation — behavioral gaps an agent should know before calling a write tool.

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?

Two sentences, zero filler, with the action and its scope front-loaded ahead of the prerequisite. Nothing could be removed without losing information.

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 4-parameter mutation tool with no annotations and no output schema, the definition covers what it does and how to get the permissionId, but leaves out post-call expectations and privilege considerations around ownership transfer. Adequate to invoke correctly, thin on consequences.

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 role, fileId, permissionId, and transferOwnership are already documented in the schema, and the description only restates that role is an access level and that permissionId comes from listPermissions. Baseline 3 is appropriate when the schema does the heavy lifting and the description adds no syntax or format detail beyond it.

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?

The description uses a specific verb ("Changes") plus a precisely scoped resource ("the role (access level) of an existing sharing permission"), and the word "existing" plus the permissionId requirement makes it distinguishable from addPermission/removePermission without opening any schema.

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?

It gives a concrete prerequisite workflow: "Use listPermissions first to get the permissionId," which tells the agent how to obtain a required identifier rather than making it guess. It stops short of explicit exclusions (e.g., when to prefer addPermission for a new grant or how ownership transfer changes the flow), so it is clear context without full routing guidance.

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