Skip to main content
Glama

List files on a device

pi_files_list
Read-only

List one directory on a remote SSH device relative to $HOME, returning entry path, name, type, link status, size, and modified time with folders first.

Instructions

List one directory on the remote device relative to $HOME, not recursive: path, name, isDir, isLink, size and mtime for each entry, folders first.

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": {
      "device_id": "<device_id>"
    },
    "name": "pi_files_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoPath relative to the authenticated user's remote $HOME directory.
device_idYesIP address, hostname, MAC address, or device identifier of the target Raspberry Pi / SSH device.
show_hiddenNoInclude hidden files (starting with .).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/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 covered. The description adds genuinely new behavioral detail beyond that: single-level scope, folder-first ordering, and the exact per-entry fields returned. It does not address failure modes such as a nonexistent path or unauthenticated device.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the operation and scope, then a colon-delimited field list. No redundant or filler wording.

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

Completeness4/5

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

For a read-only listing tool with full schema coverage and annotations, the description is nearly complete, and the field enumeration compensates for the absent output schema. Minor gaps remain around error conditions and whether the device must already be authenticated.

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 all three parameters are already documented in the schema. The description's '$HOME-relative' phrasing only restates the path semantics and says nothing about show_hidden or device_id, so the baseline 3 applies.

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 description gives a specific verb and resource ('List one directory on the remote device'), scopes it precisely ('relative to $HOME, not recursive'), and enumerates the returned fields, so an agent knows exactly what this call produces.

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?

The 'not recursive' and '$HOME-relative' constraints imply the intended use case, but there is no explicit statement of when to pick this over a file-reading or path-inspection sibling, and no when-not guidance.

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