Skip to main content
Glama
Topsail

Topsail

by AidanZealley

list_files

Read-only

Lists G-code files on a Klipper printer, newest first, with slicer-recorded material, temperatures, height, and print time; supports search, limit, and optional printer selection.

Instructions

List G-code files on the printer, newest first, with what the slicer recorded about each: material, temperatures, height and time.

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
limitNo
searchNoOnly files whose path contains this, in any case.
printerNoPrinter name from list_printers. Optional when only one is configured.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: results are ordered newest first and each entry carries slicer-recorded material, temperatures, height and time. It does not disclose the default result cap or whether the printer must be online, which are the remaining behavioral gaps.

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?

A single front-loaded sentence with no filler. The resource, ordering, and returned metadata all appear before any elaboration, and nothing is repeated.

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 no output schema, the description adequately explains what comes back and in what order, and annotations carry the safety profile. The one material omission is that results are capped (default 20, max 50), which affects how an agent should page or search.

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 67% and the description contributes nothing about the three parameters — no mention of the limit/truncation, the search substring filter, or the printer selector. The 'newest first' ordering hints at sort behavior but not at how limit interacts with it, so the description adds no meaning 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?

States a specific verb and resource ('List G-code files on the printer') plus sort order and the metadata returned. It is distinguishable from list_macros and list_printers by the resource alone, though it does not explicitly name a sibling it is not.

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?

No when-to-use or when-not-to-use guidance. It never mentions the natural workflow neighbors (upload_gcode, start_print) or when a file listing is the right call versus printer_status. Usage is only inferable from the resource name.

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