Skip to main content
Glama

Get File Info

get_file_info
Read-onlyIdempotent

Retrieve file or folder size, type, permissions, and timestamps from a specified path to inspect metadata before reading, editing, or managing remote files.

Instructions

Size, type, permissions and timestamps for a path.

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
pathYesFile or folder path.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered without the description's help. What the description does add is that this is metadata inspection rather than content retrieval, which is a meaningful behavioral distinction. It says nothing about behavior on missing paths, symlinks, or permission-denied errors, so it is not more than a modest supplement.

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?

Four words of payload with zero filler and the key attributes front-loaded. The trade-off is that it is a bare noun phrase with no verb, so brevity comes at the cost of a complete sentence describing the action.

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?

An output schema exists, so return values need no explanation, and for a one-parameter read tool the definition is close to sufficient. It still leaves error semantics (nonexistent path, insufficient permissions) and path-format expectations unstated, which matters for a tool whose whole job is resolving a path.

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 parameter and the schema documents it at 100% coverage ('File or folder path'), so the schema carries the burden. The description's 'for a path' restates the schema rather than adding format, relative-vs-absolute, or tilde-expansion guidance.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The fragment 'Size, type, permissions and timestamps for a path' enumerates the metadata returned, which implies a stat-like read, but it contains no verb and never says it does not return file contents. An agent can infer it differs from read_file or list_directory, but only by guessing from the noun list.

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 guidance, no mention of alternatives, and no stated precondition such as the path existing or being accessible. The agent must decide on its own whether to reach for this or read_file/list_directory.

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