Skip to main content
Glama

file_permission_set

Grant a user or group viewer, editor, or owner access to a file or folder; folder grants apply to contained items. Requires owner level and an RBAC-enabled storage.

Instructions

Grant a person (user_id) or a group (group_id) a level on a file or folder - viewer, editor or owner; a folder's grant reaches what is inside it. Needs owner level on the item and the account's share.users, and works on a storage with access control (storage_rbac); a viewer account can only be given viewer (RBAC.md).

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": {
      "path": "<path>",
      "level": "<level>"
    },
    "name": "file_permission_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesadapter:// path of the file or folder
levelYesviewer, editor or owner
user_idNothe person to grant to (an id file_permission_users answers); or group_id
group_idNothe group to grant to (every member); or user_id

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses required permissions, the storage capability prerequisite (storage_rbac), inheritance behavior ('a folder's grant reaches what is inside it'), and a role-based constraint, and points to RBAC.md. It omits mutation-specific behavior an agent would want — whether re-granting an existing level is idempotent, whether it overwrites or errors, and whether the grant can be undone.

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 action and its levels are front-loaded, then prerequisites and constraints follow in a compact sequence. The single semicolon-chained sentence is dense but nearly every clause carries distinct information; slight loss of scannability keeps it from a 5.

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?

For a permission-mutation tool with no annotations, the description covers prerequisites, inheritance, and role constraints, and an output schema exists so return values need not be described. The remaining gap is operational behavior on repeated or conflicting grants, which an agent would need to call this safely.

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 100%, so baseline is 3, but the description adds real meaning beyond it: user_id and group_id are alternatives ('a person (user_id) or a group (group_id)'), and the path argument gains inheritance semantics for folders. It does not clarify what happens if both user_id and group_id are supplied.

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?

States a precise verb and resource ('Grant ... a level on a file or folder') and enumerates the granted levels (viewer, editor, owner), plus which subjects can receive the grant (user_id or group_id). An agent can immediately distinguish this from file_permission_revoke or file_permissions without opening a 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?

Gives concrete preconditions: you need owner level on the item and the account's share.users scope, the storage must have storage_rbac access control, and a viewer account may only confer viewer. It does not explicitly route the agent to alternatives such as file_permission_users for obtaining ids or file_permission_revoke for removal, so it stops short of full when/when-not guidance.

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