get_file_info
Retrieve detailed information about a file or directory by specifying its full path.
Instructions
获取文件或目录的详细信息
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 文件或目录路径 |
Retrieve detailed information about a file or directory by specifying its full path.
获取文件或目录的详细信息
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 文件或目录路径 |
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description only says 'get detailed information' without disclosing behavioral traits such as return format, error handling, permissions, or whether it follows symlinks. The read-only nature is implied but not explicit.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no unnecessary words, making it concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema and no description of what 'detailed information' includes, an agent cannot know what the tool returns. The description is too sparse for a tool with no annotations or output schema, leaving the agent to guess about return values and behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides full coverage of the single filePath parameter with a description. The tool description adds no additional context about parameter format, examples, or edge cases, so it provides no value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves detailed information about a file or directory, using a specific verb (获取) and resource. This distinguishes it from sibling tools like read_file (content) and list_directory (listing), making the purpose unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives such as file_exists or read_file. The description lacks any context about use cases, prerequisites, or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zql78/mcp-linux-ops'
If you have feedback or need assistance with the MCP directory API, please join our Discord server