Skip to main content
Glama

Chmod calculator

chmod_calc
Read-onlyIdempotent

Convert Unix permissions between octal and symbolic formats, including setuid, setgid, and sticky bits, to interpret or generate chmod values.

Instructions

Convert Unix permissions between octal ("755") and symbolic ("rwxr-xr-x") form, including setuid/setgid/sticky. (Same as IT-Tools /chmod-calculator.)

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": {
      "mode": "<mode>"
    },
    "name": "chmod_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes"755", "4755", "rwxr-xr-x" or "-rw-r--r--"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so safety is covered. The description adds that it handles setuid/setgid/sticky bits, which is genuine behavioral context beyond the schema, though it doesn't discuss output format or direction auto-detection explicitly.

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?

One front-loaded sentence plus a parenthetical tool reference; efficient, though the IT-Tools parenthetical is low value for an agent.

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

Completeness3/5

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

For a simple one-parameter converter, the definition is mostly sufficient, but it leaves return format (which form is output when input is octal vs symbolic) and handling of the leading '-' undocumented, which matters for a bidirectional conversion tool without an output schema.

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% and the single 'mode' parameter is fully documented with example values there. The description adds the notion of symbolic forms with setuid/setgid/sticky but doesn't clarify auto-detection or how the leading dash in '-rw-r--r--' is treated.

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 precise verb (convert) and resources (Unix permissions between octal and symbolic), including special bits. It is clearly distinct from siblings like number_base_convert (which would not handle rwx strings).

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 through the examples of accepted formats but doesn't state when to prefer this over alternatives like number_base_convert for octal-to-decimal conversion, or explicitly call out that it's permission-specific. Usage is inferable but not spelled out.

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