Skip to main content
Glama

ScorpTech x402 Tools

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. 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/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.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered. The description adds genuinely useful context beyond them: the billing model ($0.001 USDC per successful call via x402 on Base or Solana) and an equivalent HTTPS endpoint, which matter for agent-side planning. It does not describe error behavior for malformed modes.

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?

Dense and front-loaded: purpose first, then accepted formats, then the bit semantics, then return shape, then pricing. The compressed multi-idea sentences (the s/t/S/T and setuid clause) are terse but every sentence adds information; only the pricing/endpoint tail is arguably outside the tool's core job.

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?

There is no output schema, but the description lists the returned JSON keys (value, octal, octal4, symbolic, setuid, setgid, sticky, owner), so the agent knows what comes back. For a single-parameter, read-only lookup, the parsing rules, return shape, and cost model together leave nothing essential missing.

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 description coverage is 0%, so the description carries the parameter burden, and it does: it enumerates accepted forms (octal 755/0755/4755, the 9-character ls form, optional leading type character) and explains s vs S and t vs T. One weakness is that "value is the mode as a decimal integer" describes the response field of the same name, which can be misread as constraining the input string parameter.

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?

The description opens with a specific verb and resource ("Explain a POSIX file mode") and immediately bounds the accepted input surface, so an agent knows exactly what the tool does. It never names the near siblings (umask_mode, mode_diff, file_type_detect), so the differentiation is left implicit rather than stated.

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 implied by the opening sentence and by the enumerated accepted input forms, which tell the agent when the tool applies. There is no explicit when-not guidance or pointer to the sibling tools that overlap (umask_mode, mode_diff), so selection still requires inference.

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