Skip to main content
Glama
beagleprint-mcp

beagleprint-mcp

send_gcode

Destructive

Sends one G-code line to a connected 3D printer and returns the firmware response, enabling motion, heating, calibration, or EEPROM commands. Unavailable while printing.

Instructions

Send any G-code line to the printer (motion, heating, calibration, saving to EEPROM...) and return the firmware's reply. Explain to the user what it does and wait for confirmation first. Not available while printing.

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

Input Schema

NameRequiredDescriptionDefault
gcodeYesOne line of G-code, e.g. M115
timeoutNoMaximum seconds to wait for the printer's ok

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, so the safety bar is partly covered. The description adds real value beyond them: it discloses that the firmware's reply is returned, that the tool is blocked during printing, and that user confirmation must be obtained first.

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 tight sentences: capability plus examples first, then the operational constraints. No filler, and the destructive-action caveats are front-loaded where an agent will read them.

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?

An output schema exists, so return-value detail is not needed, and the description still notes the firmware reply. Combined with the printing-state restriction and confirmation requirement, it is nearly complete; the input-length cap and timeout behavior are left to the schema.

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 coverage is 100% and both parameters are documented in the schema, so the baseline is 3. The description adds only the notion that the payload is a single G-code line with broad purpose; it says nothing about the 96-character limit or the timeout semantics.

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 gives a specific verb and resource — send a raw G-code line to the printer — and illustrates the range with concrete categories (motion, heating, calibration, saving to EEPROM). It implies it is the generic raw-command channel versus a query tool like query_gcode, but never names or contrasts a sibling explicitly.

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 states an explicit unavailability condition (not while printing) and a required interaction protocol (explain to the user and wait for confirmation first), which is strong when-to-use and when-not guidance. It stops short of naming alternatives for read-only queries.

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