Skip to main content
Glama

chmod

Destructive

Change file permissions using octal modes (e.g., 644, 755). Preview changes with --dry_run and get JSON output with old and new mode values.

Instructions

Change file permissions using octal modes (e.g., 644, 755). Destructive: modifies filesystem permission bits. Use --dry_run to preview without changing. Returns JSON with old and new mode values. Use to control read/write/execute access. Not for ownership changes — use 'chown' or 'chgrp'. See also 'chown', 'chgrp'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoReport operations without changing files.
modeYesOctal mode such as 644, 755, or 0644.
no_followNoDo not follow symlinks where supported.
pathsYesPaths whose mode should change.
Behavior5/5

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

Discloses destructive nature (modifies filesystem bit) beyond the destructiveHint annotation, and adds useful behaviors like --dry_run for preview and return format (JSON with old/new mode). No contradictions with annotations.

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?

Three sentences, each carrying distinct value: purpose+destructiveness, preview+return, usage guidance+alternatives. No redundancy or filler.

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?

Covers return format and references siblings, but does not address error cases or permission requirements. Acceptable given schema covers all parameters and annotations provide destructive hint.

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 100%, so baseline 3. Description does not add significant new information beyond what schema already provides (e.g., octal modes, dry_run preview). Fulfills minimal requirement.

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?

Description clearly states it changes file permissions using octal modes, specifies the resource (filesystem permission bits), and differentiates from ownership changes by referencing chown/chgrp.

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

Usage Guidelines5/5

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

Explicitly says when to use (control read/write/execute access) and when not to (ownership changes), and points to alternative tools chown and chgrp. Also recommends --dry_run for preview.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/caseSHY/AI-CLI'

If you have feedback or need assistance with the MCP directory API, please join our Discord server