Skip to main content
Glama

List Files

list_files

Lists files and directories on a MicroPython board's filesystem so you can inspect device storage and locate paths before reading, copying, or deleting files.

Instructions

List files and directories on the device filesystem.

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

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory path to list (default: root "/")./

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and does very little with it. It does not state whether the listing is non-recursive, whether hidden entries are included, or what happens for a nonexistent or unreadable path; only the safe-read nature is weakly implied by 'List'.

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 short sentence with the resource front-loaded and no filler. Its brevity is efficient rather than padded, though a bit more substance could have been added without hurting structure.

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?

The tool is simple (one optional parameter, an output schema that covers the return value), so the description is roughly adequate. It remains thin on directory-traversal semantics and error behavior, which an agent calling on a device filesystem would want to know.

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% and the single 'path' parameter already documents its default of root '/', so the description adds no meaning beyond the schema. Baseline 3 applies since the schema does the work.

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 gives a specific verb ('List') and resource ('files and directories on the device filesystem'), which cleanly separates it from siblings like read_file, mkdir, rm, or rmdir. It does not explicitly name or contrast with any sibling, so it stops short of full differentiation.

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 explicit when-to-use or when-not-to-use guidance; the only cue is the implicit notion of browsing a directory before acting on its entries. With siblings such as read_file and device_info present, a sentence routing the agent (e.g. 'use before read_file to discover paths') would be valuable but is absent.

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