Skip to main content
Glama

ScorpTech x402 Tools

Chmod Apply

chmod_apply
Read-onlyIdempotent

Apply a chmod mode to a starting mode. The grammar is GNU chmod: symbolic [ugoa]([-+=][rwxXst] or one of ugo), comma separated, or =644 / +1, or a bare octal. No spaces. If who is omitted, bits set in umask are not changed; the default umask is 0. Explicit who ignores umask. X adds execute only on a directory, or when an execute bit is already set. On a directory, bare octal shorter than five digits keeps set-user-ID and set-group-ID; =755, 00755, or a symbolic s clears them. The sticky bit is not kept across = or bare octal. Returns JSON with: value, octal, octal4, symbolic, setuid, setgid, sticky, owner. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/chmod-apply

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>",
      "spec": "<spec>"
    },
    "name": "chmod_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
specYes
umaskNo0
directoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false), so the description is not obligated to restate that. It adds real value beyond the structured fields: the exact JSON keys returned (value, octal, octal4, symbolic, setuid, setgid, sticky, owner), the per-call price of $0.001 USDC via x402 on Base or Solana, and the alternative HTTPS endpoint. Error behavior and failure modes are not described, which keeps it from a 5.

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?

Front-loaded with the core action, then grammar, then edge cases, then return/pricing. Almost every sentence earns its place given the density of GNU chmod semantics, though the trailing pricing/HTTPS sentence is more service metadata than tool guidance and the required-parameter mapping is buried rather than stated.

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?

For a 4-parameter pure-function tool with no output schema, the definition is close to self-sufficient: it enumerates return keys, documents umask and directory behavior, and discloses cost and an alternate transport. The main shortfall is the unresolved correspondence between the prose's two "modes" and the `mode`/`spec` parameters, which an agent must guess.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description carries the full burden, and it only partly does. It explains umask semantics (omitted who leaves umask bits untouched, default 0) and implies the directory flag via the X rule, but the two required parameters are never mapped to their names in the schema: the prose says "a chmod mode" and "a starting mode," leaving genuine ambiguity about whether `mode` is the spec or the base value, and maxLength limits are undiscussed.

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?

"Apply a chmod mode to a starting mode" names a specific verb (apply) and resource (chmod mode), and the following grammar notes pin down exactly what computation is performed. Nothing in the sibling list overlaps, so an agent can immediately tell this is a pure mode-arithmetic tool rather than a filesystem operation.

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?

Usage is only implied: the grammar rules tell you what inputs are legal but never state when to reach for this tool versus doing the bit math yourself, nor any preconditions. There is no explicit "use this when" or exclusion clause, though for a self-contained calculator the implied usage is reasonably recoverable.

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