Skip to main content
Glama

File Mode

file_mode
Read-onlyIdempotent

Explain a POSIX file mode. Accepts octal (755, 0755, 4755) or the 9-character ls form, with an optional leading type character. s and t mean the execute bit is also set; S and T mean the special bit without execute. setuid, setgid and sticky are the high octal digit. value is the mode as a decimal integer. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/file-mode

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": {
      "value": "<value>"
    },
    "name": "file_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes

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 declare readOnly/idempotent/non-destructive/openWorld, so safety is covered. The description adds genuinely useful behavior annotations cover: a per-call price ($0.001 USDC via x402/Solana) and an equivalent HTTPS GET endpoint, which matter for routing and cost decisions. It stops short of describing what the explanation output contains.

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-loads purpose, then input formats, then cost/endpoint — a sensible order with little waste. Some density in the s/S/t/T and setuid/setgid clause, and the pricing line is operational rather than semantic, but overall tight.

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 single-param read-only explainer with no output schema, the description covers input formats, cost model, and transport alternative — enough to call it correctly. Missing only a hint about the shape of the returned explanation, which is a minor gap.

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 0% (the single 'value' param has no description), so the description must carry the load and largely does: octal vs 9-character ls forms, optional type prefix, and the s/S/t/T convention are all spelled out. However the closing line 'value is the mode as a decimal integer' is confusing and arguably conflicts with the schema's string type and the octal/ls examples, muddying an otherwise strong explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Explain a POSIX file mode') so it's clearly a decoder/explainer rather than a mutator like chmod_apply. It does not name those siblings explicitly, so differentiation is by implication (explain vs apply) rather than by direct routing.

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 accepted input formats tell the agent what it can feed in, but there is no explicit 'use this when you want to decode a mode, use chmod_apply to change one' guidance. With chmod_apply, umask_mode, permission_check and file_type_detect nearby, an explicit distinction would help.

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