Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Change File or Directory Owner (uid/gid)

fs_chown

Change a file or folder's owner UID and group GID, optionally recursively, to correct ownership and access when system privileges allow.

Instructions

修改文件或文件夹的所有者 UID 和所属组 GID(需系统权限允许)。

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": {
      "path": "<path>",
      "uid": "<uid>",
      "gid": "<gid>"
    },
    "name": "fs_chown"
  }
}

Input Schema

NameRequiredDescriptionDefault
gidYes目标用户组 GID
uidYes目标用户 UID
pathYes目标文件或文件夹路径
recursiveNo如果是文件夹,是否递归修改

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only discloses the privilege prerequisite. It says nothing about irreversibility, whether ownership changes follow symlinks, what happens on partial failure during a recursive run, or whether parent directories are touched.

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?

A single compact sentence that front-loads the operation and appends the privilege caveat. Nothing is padded, though the parenthetical would be better used on scope or recursion behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter mutation with no annotations and no output schema, the description is minimal but the schema covers parameter meaning adequately. The missing piece is behavioral risk around the recursive flag and privilege failure modes.

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 uid, gid, path, and recursive are already documented. The description restates the uid/gid meaning without adding semantics, and the notable 'recursive' parameter that governs blast radius is not mentioned at all.

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 names a specific verb+resource: change file/folder owner UID and group GID. That clearly separates it from permission-oriented siblings like fs_chmod, but it never names fs_chmod or explains the ownership-vs-permissions split explicitly.

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

Usage Guidelines2/5

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

The only usage context given is that system privileges are required. There is no guidance on when to choose this over fs_chmod or fs_get_info to first verify current ownership, and no mention of which error cases (EPERM, ENOENT) matter.

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