Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Get path info

get_path_info
Read-onlyIdempotent

Check whether a file or folder exists and read its type, size, modification time, and permission mode in one read-only call on local or remote backends.

Instructions

Get the type, size, modification time and mode of one file or folder. Use when: checking that a path exists or what it is, or reading a mode. Instead: list_directory for a folder's entries; read_file for the contents. Behavior: read-only. Follows a symlink: the fields, name included, are the target's; is_link says the path itself is a link (local disk; remote backends report false). Nothing at path, or a dangling link, fails (list_directory on the parent shows the link). Time limit: 15 s. Returns: {name, is_dir, is_link, size, modified (ISO 8601 or null), mode (octal such as '0644', null without POSIX bits)}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_path_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe file or folder to describe (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.

Output Schema

NameRequiredDescriptionDefault
modeYespermission bits in octal, e.g. '0644'; null: none
nameYes
sizeYes
is_dirYes
is_linkYes
modifiedYesISO 8601, or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only declare read-only, idempotent, non-destructive, open-world. The description adds real behavior: symlinks are followed, so every field including name belongs to the target, while is_link reports the path itself, and remote backends always report false. It also states the failure mode for missing or dangling paths, points to list_directory on the parent, and gives a 15 s time limit.

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?

The labeled sections (Use when, Instead, Behavior, Returns) front-load the purpose and keep scanning cheap with no filler. The Returns line partly restates the output schema, but it also pins down value formats such as octal '0644' and ISO 8601, so it is close to earning its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple: three optional parameters, full schema coverage, and an output schema present. The description still covers the remaining gaps an agent would hit, namely symlink resolution, the missing-path error, and the timeout, so nothing needed for a correct call is absent.

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%, so path, backend and path_b64 are already documented, and the description adds nothing about backend selection or the base64 path form. It only implicitly reinforces that path must resolve, which the schema and failure note already cover, so this stays at the baseline.

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

Purpose5/5

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

The first sentence names the exact verb and resource and enumerates the returned fields: 'Get the type, size, modification time and mode of one file or folder.' The 'Instead' line explicitly separates it from list_directory and read_file, so an agent can pick it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The definition states when to use the tool ('checking that a path exists or what it is, or reading a mode') and names the alternatives for the neighboring jobs (list_directory for entries, read_file for contents). No inference is required to choose between them.

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