Skip to main content
Glama

desktop_get_file_info

Inspect workspace-relative file or directory metadata to verify paths and retrieve safe regular-file details before reading, editing, or automating local tasks.

Instructions

Inspect safe regular-file or directory metadata within the selected workspace.

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

Input Schema

NameRequiredDescriptionDefault
pathYesWorkspace-relative path; use . for root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 burden. "Safe" and "regular-file or directory" hint that symlinks, special files, or policy-restricted paths may be rejected, but the description never states that this is a non-mutating read, what happens on rejection, or what metadata categories are returned. For a zero-annotation tool this is a thin behavioral profile.

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?

One tightly constructed sentence with the resource and scope front-loaded and no filler. It is efficient, though the brevity edges toward under-specification rather than true conciseness.

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?

There is no output schema, so the description should convey what kind of metadata comes back (size, timestamps, type, permissions), and it does not. For a one-parameter read tool the scope and safety hints are adequate to select and call it, but the return contract remains unknown.

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 100% and the single path parameter is fully documented in the schema, so the baseline is 3. The phrase "within the selected workspace" reinforces the workspace-relative semantics but adds nothing about path formats or edge cases beyond the schema.

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 names a specific verb ("Inspect") and resource ("regular-file or directory metadata"), which is meaningfully distinct from a contents-reading sibling like desktop_read_file. It stops short of explicitly contrasting itself with any sibling, so an agent must infer the boundary from the word "metadata."

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

Usage Guidelines3/5

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

Usage is only implied: "metadata" suggests inspection rather than reading contents, and "within the selected workspace" implies a scoping prerequisite. There is no explicit statement of when to prefer this over desktop_read_file or desktop_list_directory, and no guidance on cases where the path is not a regular file or directory.

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