Skip to main content
Glama
Topsail

Topsail

by AidanZealley

run_macro

Destructive

Executes an existing public Klipper macro by name; use list_macros first to find the macro and its parameters.

Instructions

Run an existing public Klipper macro. Use list_macros to find its name and parameters.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPublic macro name from list_macros.
paramsNoUppercase parameter names with numbers or single-token strings.
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.3/5.0
Behavior2/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is declared structurally. The description adds nothing beyond the 'public macro' scoping: it does not warn that macros can move axes, heat tools, or be irreversible, and says nothing about whether the call blocks until completion or how failures surface. For a destructive hardware action, this is a meaningful omission.

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?

Two short sentences, front-loaded with the action and followed immediately by the discovery prerequisite. No filler or redundancy.

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

Completeness3/5

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

The definition is adequate for invoking the tool: discovery path and parameter sourcing are covered, and no output schema is needed. But for a destructive, nested-parameter tool it omits what the agent most needs to know before calling — side effects, machine-state preconditions, and blocking behavior — leaving the annotations to carry that burden alone.

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%, with each parameter documented (name, params, printer), so the schema carries the semantic load. The description only points to list_macros as the source of valid names and parameters, which is a helpful pointer but not additional per-parameter meaning. 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?

The description states a specific verb and resource: 'Run an existing public Klipper macro.' 'Public' and 'existing' usefully narrow the scope. It does not explicitly distinguish this from siblings like start_print, which also initiates machine actions, but the macro framing is clear enough to select it.

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?

It gives a concrete prerequisite path: use list_macros first to obtain the name and parameters. However, there is no guidance on when NOT to use it, no note about machine state (idle vs. printing), and no caution despite the macro being able to drive hardware.

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