Skip to main content
Glama

chmod_files

Idempotent

Change Unix permissions on files or folders on a server by specifying octal modes, so access rights can be updated without manual SSH commands.

Instructions

Change Unix permissions (mode) on files or folders on the server.

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": {
      "server_id": "<server_id>",
      "files": "<files>"
    },
    "name": "chmod_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoBase directory path (default '/')
filesYes
server_idYesShort server identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, so the safety profile and repeatability are covered structurally. The description adds almost nothing beyond that: it does not say whether the mode replaces existing permissions wholesale, whether folders are changed recursively, what happens when the caller lacks ownership, or what a partial failure looks like.

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 front-loaded sentence with no filler, and the verb and resource appear immediately. It is efficient but so terse that the brevity costs information rather than gaining clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the definition should cover permission requirements, recursion on directories, and the relationship between 'root' and the 'files' entries. None of that is present, and a failed chmod on a directory subtree is a realistic hazard the agent is not warned about.

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 coverage is 67%, with 'file' and the 'files' array items undocumented and only 'root', 'mode', and 'server_id' carrying schema descriptions. The description's parenthetical '(mode)' and 'files or folders' hints that the array holds paths relative to 'root', but it supplies no syntax or path-resolution details 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?

States a specific verb ('Change') and resource ('Unix permissions (mode) on files or folders'), which is clear enough for an agent to recognize a chmod-style operation. It does not distinguish itself from any sibling (none of the listed siblings overlap), but it also never says how it relates to general file manipulation tools like rename_files or copy_file.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no when-to-use guidance, no prerequisites (ownership, root access, sudo), and no mention of when this tool is a bad choice. An agent must infer entirely from the name that this is the tool for permission changes.

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