Skip to main content
Glama
Smart File Reader MCP Server

Smart File Reader MCP Server

get_file_info

Retrieve metadata for a local file, including name, extension, size, formatted size, and timestamps, to inspect file details before reading or analyzing it.

Instructions

Get metadata about a file (name, extension, size, formatted size, timestamps).

    Args:
        path: Relative or absolute path to the file.
    

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
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it discloses the returned metadata fields, which is real value. However, it says nothing about whether the path must exist, behavior on directories or symlinks, permission requirements, or error handling for a missing file.

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?

Two compact lines, front-loaded with the purpose and the field list before the Args block. The Args framing is docstring boilerplate but carries the path semantics, so it earns its space.

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 single-parameter read-only tool with an output schema covering return values, the description is adequate but thin: error/not-found behavior and directory handling are undocumented and there are no annotations to cover them.

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 0%, so the description must compensate, and it does add a real semantic note that the path may be relative or absolute. It stops short of stating what a relative path is resolved against, or whether directories are acceptable inputs.

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?

'Get metadata about a file' names a specific verb and resource and enumerates the returned fields (name, extension, size, formatted size, timestamps), which distinguishes it from content-reading siblings like read_file or search_file_content. It does not explicitly separate itself from get_file_preview, which could plausibly overlap.

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 description contains no when-to-use or when-not-to-use guidance and never names an alternative. An agent must infer that this is the metadata-only path versus read_file/get_file_preview purely from the field list.

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