Skip to main content
Glama

chmod calculator

chmod_calc
Read-onlyIdempotent

Convert Unix file permissions between octal, symbolic, and chmod clause formats; get plain-English owner/group/others explanations, setuid/setgid/sticky meanings, safety warnings, and ready-to-run commands.

Instructions

Convert Unix file permissions between octal (755, 0644, 4755), symbolic (rwxr-xr-x, ls -l style -rwsr-xr-x) and chmod clauses (u=rwx,g=rx,o=; relative ones like g+w or +x apply to "base"). Returns all forms, a plain-English description per owner/group/others, setuid/setgid/sticky meaning, safety warnings, and ready chmod commands. Web version: https://s3eidat.github.io/chmod-calc/

Input Schema

NameRequiredDescriptionDefault
baseNoStarting mode (octal) for relative clauses like "g+w". Default 000.
fileNoFile name for the example chmod commands (shell-quoted).file
modeYesOctal ("755", "0644", "2775"), symbolic ("rwxr-x---", "drwxrwxrwt") or clauses ("u=rw,go=r", "+x").
recursiveNoAdd -R to the example commands.

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?

Annotations already establish readOnly/idempotent/closed-world, and the description adds meaningful context: that it emits all forms, per-class plain-English descriptions, setuid/setgid/sticky semantics, safety warnings, and ready-to-run chmod commands. Only the exact output structure remains unspecified, which is minor given no output schema.

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?

A single dense sentence that front-loads the conversion capability and then lists the deliverables. Every clause earns its place; nothing is padded.

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

Completeness5/5

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

With no output schema, the description compensates by enumerating what is returned (all forms, plain-English per-class descriptions, special-bit meanings, warnings, chmod commands). An agent knows exactly what to expect and what inputs to supply.

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 all four parameters are already documented. The description reinforces that relative clauses like g+w or +x resolve against 'base', but this largely mirrors the schema's own wording rather than adding new meaning, so baseline 3 is right.

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 specific verb (Convert) and resource (Unix file permissions) and enumerates the exact notations handled (octal, symbolic, chmod clauses). This clearly separates it from generic converters like base_convert or calc_unit_convert.

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?

The accepted input forms are spelled out with examples, giving a clear picture of when this tool applies versus a generic calculator. It stops short of naming alternatives or stating exclusions, but for a self-contained calculator the context is unambiguous.

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

Deploy Server

Other Tools