Skip to main content
Glama
beagleprint-mcp

beagleprint-mcp

query_gcode

Read-onlyIdempotent

Send read-only G-code queries to a 3D printer and return firmware replies for checking status and settings without changing printer state.

Instructions

Send a query G-code to the printer and return the firmware's reply. Only queries are accepted (M105, M114, M115, M119, M211, M420, M503, M851, M92, M301, M304, M205...) with no arguments that change anything; use send_gcode for anything else. 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": "query_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.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered. The description adds genuinely new behavioral facts: the call returns the firmware's reply, non-query commands are rejected, and the tool is unavailable while a print is running. It stops short of describing error/timeout behavior, which keeps it at 4 rather than 5.

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 short sentences with zero filler: purpose first, constraint and accepted values second, routing to the alternative and the availability caveat last. Every clause carries load-bearing information.

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?

An output schema exists, so return values need no explanation, and annotations plus a fully described two-parameter schema cover the rest. For a low-complexity read-only tool, nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the baseline is 3; however the description constrains the 'gcode' parameter's acceptable value set to specific query commands, which the schema only hints at with a single example. The 'timeout' parameter is left entirely to the schema, so it is not a full 5.

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 ('send a query G-code ... return the firmware's reply') and immediately scopes it to read-only query commands with concrete examples (M105, M114, M115, M503...). It also names the sibling it is not (send_gcode), so an agent can distinguish the two without opening either schema.

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 when-to-use ('only queries are accepted ... with no arguments that change anything'), explicit when-not and alternative ('use send_gcode for anything else'), plus an availability exclusion ('not available while printing'). This is the full when/when-not/alternative triad.

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