Skip to main content
Glama

set_light

Idempotent

Sets a Bambu printer light node's mode via MQTT to on, off, or flashing, letting you control chamber lighting from Claude without manual printer interaction.

Instructions

Set a Bambu printer light node mode using the printer's MQTT LED command

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": {
      "light": "<light>",
      "mode": "<mode>"
    },
    "name": "set_light"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoHostname or IP of the printer (default: value from env)
modeYesLight mode to apply
lightYesLight node to control, for example chamber_light
bambu_tokenNoAccess token (default: value from env)
bambu_serialNoSerial number (default: value from env)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true, openWorld=true, and destructive=false, so the safety profile is covered. The description adds that the write goes over the printer's MQTT LED command, implying a live network connection to the printer, but says nothing about failure behavior, auth requirements, or what happens with an unknown light node.

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?

A single front-loaded sentence with no filler or redundant restatement of the title. It is efficient, though it leaves room to add a clause of practical guidance without becoming bloated.

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 simple, single-purpose mutation tool with full schema coverage and annotations covering safety and idempotency, the definition is nearly sufficient. The remaining gap is operational context: credential defaults and how invalid light node values are handled.

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%, so all five parameters, including the on/off/flashing enum and the chamber_light example, are already documented in the schema. The description's only phrase bearing on parameters is 'light node', which merely echoes the schema; baseline 3 applies.

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 ('Set a Bambu printer light node mode') plus the transport mechanism (MQTT LED command), so the agent knows exactly what changes. It does not distinguish itself from similar sibling setters like set_airduct_mode or set_fan_speed, which is the only thing keeping it from a 5.

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

Usage Guidelines3/5

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

Usage is implied by the narrow scope of controlling a light, and the required 'light'/'mode' pair makes the intent obvious. But there is no explicit when-to-use vs. alternatives guidance, no note on how to discover valid light node names, and no prerequisites (token/serial) spelled out.

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