Skip to main content
Glama

delete_printer_file

DestructiveIdempotent

Deletes a file from a Bambu Lab printer's SD card via FTPS after explicit confirmation, restricted to cache/, timelapse/, and logs/ directories.

Instructions

Delete a file from the Bambu Lab printer's SD card via FTPS. Destructive: requires confirm:true. Restricted to cache/, timelapse/, and logs/ directories, plus top-level files on H2-series printers (except X2D). Path traversal segments (..) are rejected.

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": {
      "filename": "<filename>"
    },
    "name": "delete_printer_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoHostname or IP of the printer (default: value from env)
confirmNoMust be true to actually delete. When false or omitted the call returns without sending an FTP request.
filenameYesFile to delete. Bare names default to cache/<name>; pass a relative path like timelapse/foo.mp4 to target other allowed directories, or /<name> as list_printer_files reports it for a top-level file on an H2-series printer.
bambu_tokenNoAccess token (default: value from env)
bambu_serialNoSerial number (default: value from env)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.99
    • changedInput schema / properties / filename / description
      Previous value: -"File to delete. Bare names default to cache/<name>; pass a relative path like timelapse/foo.mp4 to target other allowed directories."New value: +"File to delete. Bare names default to cache/<name>; pass a relative path like timelapse/foo.mp4 to target other allowed directories, or /<name> as list_printer_files reports it for a top-level file on an H2-series printer."
  2. First observedv1.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=true, so the safety profile is partly covered. The description adds real value beyond that: the confirm:true dry-run gate, the directory whitelist that constrains what can be destroyed, traversal rejection, and the FTPS mechanism. It omits what happens on a missing file or permission failure, which keeps it below a 5.

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?

Three short sentences, each carrying distinct information: what it does, the destructive gate, and the path restrictions. The most decision-relevant fact (destructive, needs confirm) is front-loaded in sentence two with zero filler.

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 five-parameter mutation tool with no output schema, the description covers the safety gate, scope restrictions, and path semantics adequately. It lacks return-value and failure-mode detail (e.g., behavior when the file does not exist), a small gap given idempotentHint=true is asserted without explanation.

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%, including the default-to-cache/<name> behavior and the /<name> form for top-level H2 files, so the description adds no parameter meaning beyond the schema. The directory whitelist it mentions reinforces constraints the schema alludes to but does not document as a set, which is only marginal added value.

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 first sentence gives a specific verb (Delete) plus resource (a file on the printer's SD card) and the transport (FTPS), which cleanly separates it from sibling tools like list_printer_files, upload_file, and inspect_print_file. An agent can identify the operation without opening the schema.

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

Usage Guidelines4/5

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

The description states concrete preconditions: confirm:true is required, only cache/, timelapse/, and logs/ are permitted (plus top-level files on H2-series except X2D), and '..' segments are rejected. It stops short of routing the agent to alternatives such as list_printer_files to verify a path exists first, so usage guidance is clear but not fully comparative.

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