Skip to main content
Glama

Get file details

get_file_info
Read-only

Show the type, size, modified and created time and permissions of a file or folder.

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
deviceNoDevice name. Optional when the account has only one online device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. With no output schema, the description's enumeration of returned fields carries real weight as a de-facto return-value spec, but it adds nothing about errors (e.g., nonexistent path) or device-resolution behavior.

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 front-loaded sentence with no filler; the return attributes are listed compactly. It could be marginally improved by leading with the distinguishing use case, but there is no waste.

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?

Because there is no output schema, the description usefully enumerates what is returned, which is the critical information here. However, it omits any guidance on the optional 'device' parameter and any sibling disambiguation, leaving gaps for a 2-parameter tool with 50% schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: 'device' is documented in-schema, but 'path' has no description in either the schema or the description. The phrase 'a file or folder' hints that path accepts both, but the description does not explain path syntax, base directory, or when the device argument is needed.

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?

It states a specific verb ('Show') and resource ('file or folder') and enumerates the returned attributes (type, size, timestamps, permissions), so the agent knows exactly what this yields. It doesn't explicitly differentiate from siblings like read_file or list_directory, which is the only gap.

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 statement of when to use this versus list_directory, read_file, or search_files, and no prerequisites or conditions. The agent must infer from the tool name that this is for metadata inspection only.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources