Skip to main content
Glama
MCP Filesystem Server

MCP Filesystem Server

by pocho23

get_file_info

Retrieve detailed metadata and attributes for a specified file or directory path so you can inspect filesystem details before read, write, or delete operations.

Instructions

Get detailed information about a file or directory

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

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file or directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 delivers little: it does not state that the call is read-only and side-effect-free, whether it errors on a missing path, whether it follows symlinks, or what "detailed information" actually includes. For a metadata lookup with zero annotation coverage, this is a meaningful gap.

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 efficient sentence with no filler, and the resource being acted on is front-loaded. It is appropriately sized, though its brevity reflects under-specification as much as tight writing.

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?

This is a simple one-parameter tool, so the description need not be long, but because there is no output schema the description should have sketched what "detailed information" returns (size, timestamps, type, permissions). That omission leaves the agent guessing at the return shape.

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?

There is a single required parameter and the schema already describes it as "Path to the file or directory" at 100% coverage, so the baseline is 3. The description adds no meaning beyond the schema, such as whether relative or absolute paths are accepted.

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 pairs a specific verb ("Get") with a specific resource ("detailed information about a file or directory"), so an agent can tell it apart from read_file or list_directory by the fact it returns metadata rather than content or listings. It stops short of explicitly naming the sibling boundary, so it is clear but not fully differentiated.

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?

There is no when-to-use or when-not-to-use guidance. The agent must infer that this is the stat-like tool to call before read_file or delete_file, but nothing in the text states that ordering or any prerequisite such as the path existing.

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