Skip to main content
Glama

Set up defaults

setup_defaults
Idempotent

Reads or saves your default printer, build plate, and filament to config.json. Call it on first use or when your printer or usual filament changes.

Instructions

Read or save the user's default printer, build plate and filament (stored in config.json). Without arguments: returns the current values and the available choices. With arguments: validates them and saves only those given. Call it on first use (connector_info.setup_needed) or when the user changes printer, plate or usual filament.

Input Schema

NameRequiredDescriptionDefault
machineNoExact machine preset, e.g. "Bambu Lab A1 0.4 nozzle"; its standard process follows.
bed_typeNoUsual build plate, e.g. "Textured PEI Plate".
filamentNoUsual filament: a preset or a material name such as "PLA Matte", adapted to the printer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.1
    • addedInput schema / properties / bed_type / description
      Added value: +"Usual build plate, e.g. \"Textured PEI Plate\"."
    • addedInput schema / properties / filament / description
      Added value: +"Usual filament: a preset or a material name such as \"PLA Matte\", adapted to the printer."
    • addedInput schema / properties / machine / description
      Added value: +"Exact machine preset, e.g. \"Bambu Lab A1 0.4 nozzle\"; its standard process follows."
  2. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With annotations already declaring non-destructive, idempotent behavior, the description adds useful context: storage in config.json, validation of provided values, and saving only the values given. It stops short of describing error behavior or the exact return shape beyond current values and available choices.

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 sentences, front-loaded with the core purpose and immediately followed by the no-argument/argument behavior and trigger conditions. No wasted text.

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?

Complete enough for a three-optional-parameter, dual-mode tool with full schema coverage and no output schema. The description covers first-use triggering, validation, partial saves and what the no-argument call returns, though it could say more about failure handling.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already carries parameter examples and meanings. The description adds meaningful semantics by stating that supplied values are validated and only those given are saved, implying partial updates for the optional machine, bed_type and filament parameters.

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 states a specific dual-purpose verb and resource: read or save the user's default printer, build plate and filament. It is clear what the tool operates on, though it does not explicitly differentiate itself from siblings such as save_preset or get_preset.

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?

It gives clear usage contexts: call on first use via connector_info.setup_needed, or when the user changes printer, plate or usual filament. It also explains the no-argument versus argument behavior. It does not name alternatives or state when not to use it.

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