Skip to main content
Glama

chmod calculator

chmod_calculator
Read-onlyIdempotent

Converts Unix file permissions between octal (755, 4755) and symbolic (rwxr-xr-x) form, shows the chmod command, explains who can read, write and run, and flags risky modes such as 777.

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_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesOctal mode such as 644 or 4755, or symbolic mode such as rwxr-xr-x (a leading file-type character, as in -rwxr-xr-x, is accepted).
pathNoA file name to put in the chmod command. Defaults to filename.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value by disclosing what the response contains: the resulting chmod command, a who-can-read/write/run explanation, and a risk warning for modes like 777. It does not say whether risky-mode flagging alters the result or is purely advisory.

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 that opens with the core verb and resource, then layers on secondary outputs in priority order. Slightly list-like with four comma-joined capabilities, but no filler and no restatement of the title.

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 two-parameter, no-output-schema calculator this is close to complete: it tells the agent the inputs accepted and the categories of information returned. The gap is that it never clarifies the role of the optional path parameter or that the chmod command is rendered as text, which is the one thing an agent cannot infer without an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are already documented, including the accepted octal and symbolic forms and the leading file-type character. The description reinforces this with concrete examples (755, 4755, rwxr-xr-x), so it neither repeats wastefully nor leaves ambiguity, though it never mentions the optional path parameter.

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 ('Converts') and resource ('Unix file permissions') with both directions of conversion named (octal 755/4755 <-> symbolic rwxr-xr-x). It also enumerates secondary outputs (chmod command, human-readable access explanation, risk flagging), which cleanly separates it from the calculator/network siblings.

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 conversion use case is implied clearly enough that an agent knows when to reach for it, and no sibling tool overlaps with permission math. However, there is no explicit when-to-use or when-not-to-use statement, and no mention of accepting an existing chmod command string versus a bare mode.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources