Skip to main content
Glama

file_permission_revoke

Revoke a file permission grant by its ID; set the group flag for group grants. Requires owner-level access on the item.

Instructions

Take a grant away by its id (a row of file_permissions; group: true for a group's row - the two are numbered apart). 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": {
      "id": "<id>"
    },
    "name": "file_permission_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe grant's id (a row of file_permissions)
groupNotrue for a group's grant (a row with kind: group) - the two are numbered apart

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.7/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 disclose two non-obvious traits: the operation requires owner-level permission on the item, and user grants and group grants live in separate id spaces. It omits idempotency, error behavior, and whether revocation is reversible, which keeps it short of a 5; the output schema covers return values.

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?

A single compact sentence with the action and resource front-loaded, followed by the id-space caveat and the permission requirement. It is dense and slightly cryptic in phrasing ("the two are numbered apart") but nothing is wasted.

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 two-parameter mutation with an output schema available, the description covers the action, the id namespace distinction, and the authorization requirement. Only failure modes and reversibility are unaddressed, which are minor gaps given the tool's simplicity.

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 both id and group are already documented, and the description's "the two are numbered apart" phrasing essentially restates the schema text. Baseline 3 applies since the schema does the heavy lifting and the description adds no new syntax or format detail.

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?

"Take a grant away by its id" names a specific verb (revoke/remove) and resource (a file_permissions grant), so it is immediately distinguishable from siblings like file_permission_set that create grants. It could be sharper by naming the counterpart tool explicitly, but the operation is unambiguous.

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 description implies usage (remove an existing grant) and states a prerequisite, owner level on the item, but never says when to use this versus file_permission_set or file_unshare, nor what to do if the grant does not exist. Guidance is present but inferred rather than spelled out.

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