Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Get File or Directory Info & Permissions

fs_get_info

Retrieve file or folder metadata, including octal and symbolic permissions, uid/gid, and the current process's read, write, and execute access status.

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>"
    },
    "name": "fs_get_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes目标文件或文件夹路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose a meaningful behavior profile: it reports system-level permissions, owning uid/gid, and the effective r/w/x rights of the calling process, which signals a non-mutating inspection tool. It stops short of covering symlink-following behavior, error behavior for nonexistent paths, or whether it touches content at all.

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 front-loaded sentence with the verb first and the returned data enumerated compactly — no filler, no repetition of the title. It is dense but readable, with every clause contributing a distinct piece of return-value information.

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 one-parameter read tool with no output schema and no annotations, the description usefully compensates by describing the returned fields in detail, which is exactly what an agent would otherwise lack. Only edge-case behavior (missing path, symlinks) is unaddressed, a minor gap for a tool of this simplicity.

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 description coverage is 100% for the single required `path` parameter, so the schema already fully documents it. The description adds no path semantics such as absolute vs relative resolution or symlink handling, leaving the baseline of 3 appropriate.

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 (获取/get) and enumerates exactly what resource is returned: detailed metadata, octal/symbolic permissions, uid/gid, and the current process's read/write/execute status. This implicitly separates it from siblings that touch content (fs_read_file, fs_read_lines) or mutate state (fs_chmod, fs_chown), though no sibling is named explicitly.

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?

There is no explicit when-to-use or when-not-to-use instruction and no named alternative. Usage is only implied by the enumerated output fields, which suggest inspection before a permission change or an access check, but an agent must infer that from the data list rather than from stated guidance.

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