Skip to main content
Glama

Save a printer profile

save_printer
DestructiveIdempotent

Adds a printer missing from the catalog to topopt-printers.yaml, recording verified facts and sources after user approval.

Instructions

Keep a printer that is not in the catalog, with its facts and their sources, in topopt-printers.yaml in the work folder. It writes only that file.

Use it after find_printer says "none": look up the maker page (web search), show the user the values with the page address, and call this tool after the user agrees. A value that you cannot find stays null (unknown): ask the user for it, and leave it null if they do not know; a guess would look like a fact. The server reads the file at each call, so the printer is live at once. profile: one printer as a dict. Needed: id (lower-case slug, for example "voron-trident"), vendor, model, printer_type ("fdm", "sla", "lpbf", "sls"), bed_mm ([x, y] in mm), and a source: source_url (the maker page) or source "user" (the user said the values). Optional (null or left out = unknown): aliases (list), build_height_mm, nozzle_mm, nozzle_options_mm (list), max_nozzle_c, max_bed_c, enclosure ("open", "enclosed", "heated"), chamber_max_c (only with "heated"), stock_nozzle_material ("brass", "stainless", "hardened_steel", "tungsten_carbide"), extruder ("direct", "bowden"), opened (YYYY-MM-DD, the day the page was read), tag ("maker doc", "third party", "user"), field_sources ({field: page address or "user"}), note. The entry is checked like the shipped catalog. The same id replaces a user entry; the id of a shipped printer is refused with another id to use, and a name or alias of a shipped printer with another model name or alias. Other entries stay. Returns: ok, path, profile, created, replaced, note, problems (of the rest of the file). A wrong argument name or value gives {"ok": false, "error": ...}; nothing is written. A file that is not valid YAML is not changed. There is no CLI command: edit the file.

Input Schema

NameRequiredDescriptionDefault
profileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations flag the write and its destructiveness but say nothing about blast radius; the description supplies that (only `topopt-printers.yaml` is touched, other entries stay). It also discloses idempotent replacement ('the same id replaces a user entry'), refusal rules for shipped ids/aliases, validation against the shipped-catalog rules, and the no-write failure mode — all consistent with destructiveHint=true and idempotentHint=true.

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?

Front-loaded with the action and write target, then usage sequence, then field spec, then return/error behavior — a sensible order. It is dense and long for a one-parameter tool, but the length is mostly justified by the undocumented profile schema; a few lines (e.g. 'There is no CLI command: edit the file.') are instructional plumbing rather than tool behavior.

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

Completeness5/5

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

Given one nested free-form object, no output schema, and mutation semantics, the description covers everything an agent needs: preconditions, per-field validation, collision/refusal behavior, the returned fields (ok, path, profile, created, replaced, note, problems), and the two failure modes (bad argument, invalid YAML) with the guarantee that nothing is written.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single `profile` parameter is a free-form object with no documented properties, so the description carries the entire burden — and does: required keys with formats (id slug, printer_type enum, bed_mm as [x,y], source_url or 'user'), the full optional set with value constraints ('heated'-only chamber_max_c, nozzle material enum), and null-means-unknown semantics plus field_sources.

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?

States a specific verb and resource: keep a printer that is not in the catalog, into `topopt-printers.yaml` in the work folder. It also scopes itself ('It writes only that file') and implicitly separates itself from `find_printer` (the lookup it follows) and `save_material` (a different file).

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

Usage Guidelines5/5

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

Explicit trigger and sequence: use it after `find_printer` says 'none', look up the maker page, show the user the values with the page address, and call only after the user agrees. It also states the negative rule for missing values (stay null, ask, do not guess).

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