Skip to main content
Glama

file_permissions

See who can open a file or folder: owner, direct and inherited grants, and your effective access level. Requires owner permission on the item.

Instructions

Who may open a file or folder, as its Share dialog shows the owner: {path, storage_rbac, direct: [grants on it], inherited: [grants from a folder above], effective (your own level)}. Each grant has an id, kind (user or group), the person or group and the level. Needs owner level on the item.

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>"
    },
    "name": "file_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesadapter://path

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

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose key behavior: the output shape (direct vs inherited vs effective grants), the fields per grant, and the owner-level authorization requirement. It stops short of saying anything about error behavior when access is insufficient or whether the effective level is caller-specific.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single compact paragraph with the purpose front-loaded, but the inline pseudo-schema notation ("{path, storage_rbac, direct: [...], inherited: [...], effective}") is dense and partly restates return values that a dedicated output schema already covers.

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 single-parameter read tool with an output schema present, the definition covers purpose, authorization requirement, and the structure of what comes back. The main residual gap is routing: it does not tell the agent how this differs from the other permission-related siblings.

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?

There is only one parameter and schema coverage is 100%, with the schema already documenting it as "adapter://path". The description adds only a mild clarification that the path may point at a file or folder, so it neither compensates for a gap nor adds much beyond the schema.

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 states a concrete resource and scope: it reports who may open a given file or folder, showing direct, inherited, and effective grants. That is specific enough to distinguish it from mutating siblings like file_permission_set or file_permission_revoke, but it never names or contrasts the close read-side sibling file_permission_users, leaving some ambiguity.

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?

Usage is only implied by the stated prerequisite ("Needs owner level on the item") and the Share-dialog framing. It gives no explicit when-to-use versus file_permission_users, file_share, or file_unshare, and no statement of when not to use it.

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