Skip to main content
Glama
AndersHsueh

AX Local Operations MCP Server

by AndersHsueh

file_permissions

DestructiveIdempotent

Manage file and directory permissions across platforms using chmod for Unix and icacls for Windows. Supports recursive permission settings with depth control for consistent access management.

Instructions

跨平台文件权限管理:Unix系统使用chmod,Windows系统使用icacls。支持递归设置。

示例:设置文件权限 { "path": "script.sh", "mode": "755" } 示例:递归设置目录权限 { "path": "project", "mode": "644", "recursive": true, "max_depth": 3 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes文件或目录的绝对路径,或相对于 working_directory 的相对路径
modeNo文件权限模式,如 "755"(rwxr-xr-x)、"644"(rw-r--r--)
permissionsNoWindows权限设置对象
recursiveNo是否递归处理子目录
max_depthNo最大递归深度,0表示不递归,默认8
output_formatNo输出格式:text(纯文本)、json(结构化JSON)、both(两者兼有)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo设置的权限模式
pathNo文件/目录路径
changedNo权限是否更改成功
recursiveNo是否递归处理
Behavior4/5

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

The description adds valuable context beyond annotations: it specifies platform-specific implementations (chmod for Unix, icacls for Windows), mentions recursive capability, and provides concrete examples. While annotations already indicate destructiveHint=true and idempotentHint=true, the description provides practical implementation details that help the agent understand behavioral nuances.

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?

The description is extremely efficient: a clear purpose statement followed by two concrete examples that demonstrate key functionality. Every sentence earns its place by showing practical usage. The bilingual nature (Chinese purpose + examples) is appropriate for the context.

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?

Given the tool's complexity (6 parameters, destructive operation, cross-platform), the description provides good context with platform specifics and examples. With annotations covering safety aspects (destructive, idempotent) and an output schema existing, the description focuses appropriately on practical usage. The main gap is lack of explicit guidance on platform detection or when to use permissions object versus mode.

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?

With 100% schema description coverage, the schema already documents all 6 parameters thoroughly. The description provides examples showing how parameters like path, mode, recursive, and max_depth work together, but doesn't add significant semantic value beyond what's in the schema descriptions. The examples are helpful but don't fundamentally enhance parameter understanding beyond the schema.

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 clearly states the tool's purpose as '跨平台文件权限管理' (cross-platform file permission management) with specific verbs for Unix (chmod) and Windows (icacls). It distinguishes from siblings like file_edit or file_operation by focusing specifically on permissions. However, it doesn't explicitly differentiate from all possible sibling tools in the list.

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 description implies usage through platform-specific examples (Unix chmod, Windows icacls) and mentions recursive capability, but doesn't provide explicit guidance on when to use this tool versus alternatives like sudo_config or other file_* tools. No when-not-to-use or prerequisite information is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AndersHsueh/Ax-LocalTools-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server