Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Change permissions

set_permissions
DestructiveIdempotent

Sets POSIX mode bits such as 755 or 600 on one file or folder to make a script executable or a file private. Non-recursive; refuses setuid, setgid, sticky, and group/world write bits.

Instructions

Set the POSIX permission bits of a file or folder. Use when: making a script executable or a file private ('755', '600'); get_path_info shows the mode. Instead: none for owner or group; run_backend_command (chmod) on a remote host for bits this tool refuses. Behavior: destructive - replaces the mode of path only, not recursive (a tree: one call per entry). Follows a symlink. Files with several hard links are refused. Backends without POSIX modes fail ('... does not support Unix permissions'). Time limit: 30 s. Returns: {ok: true}.

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": "set_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesThe new mode in octal: a string such as '644', '0644' or '0o755', or the integer value (420 = 0o644). Refused, with the reason: any bit outside 0755 - setuid, setgid, sticky, group or world write (e.g. '777', '4755', '664').
pathNoThe file or folder (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well past the annotations. It states non-recursive semantics ('one call per entry' for a tree), that symlinks are followed, that hard-linked files are refused, that backends lacking POSIX modes error out with a specific message, and that calls are limited to 30 s. Those are exactly the details that determine whether an agent calls it safely.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four labeled lines (Use when / Instead / Behavior / Returns) with the core action front-loaded, and every clause carries new information. Nothing is repeated for padding.

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?

For a destructive four-parameter mutation tool that already has full schema descriptions and an output schema, this definition still covers scope limits, failure modes, and the return shape ({ok: true}). An agent has everything it needs to invoke it correctly.

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%, so the mode/path/backend/path_b64 semantics are already documented in the schema, including the octal formats and the 0755 restriction. The description only reinforces the refusal boundary by pointing at 'bits this tool refuses'; the 3 baseline is correct since there is no meaningful added meaning.

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?

Opens with a precise verb plus the exact object it manipulates: 'Set the POSIX permission bits of a file or folder.' That is unambiguous, and it is meaningfully distinguishable from siblings like copy_file or create_symlink, which also mutate a path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete when-to-use triggers ('making a script executable or a file private') and explicitly names the alternatives: get_path_info for reading the mode, and run_backend_command (chmod) on a remote host. It also carves out an exclusion — owner/group changes have no alternative in this tool.

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