Skip to main content
Glama

get_bed_mesh

Read-only

Retrieve probed bed-leveling mesh data from OctoPrint or Moonraker printers to diagnose first-layer adhesion issues by inspecting Z-offset variance and mesh bounds.

Instructions

Get the bed mesh / probe data (OctoPrint and Moonraker only).

Returns the probed bed leveling mesh including:
- ``probed_matrix``: 2D array of Z-offset measurements across the bed
- ``mesh_min`` / ``mesh_max``: bounding coordinates of the probed area
- ``variance``: overall variance of the mesh (lower = flatter bed)

Use this to diagnose first-layer adhesion issues.  High variance or
significant dips/peaks indicate a warped bed or loose leveling screws.

Not supported on Bambu Lab printers — Bambu handles bed leveling
internally and does not expose mesh data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_bed_mesh"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds genuinely non-redundant behavioral facts: the protocol-level compatibility restriction and the hard failure on Bambu Lab printers. It also documents the returned fields, which matters because no output schema exists. Missing only error-shape specifics (does it error or return empty on unsupported firmware).

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?

Purpose and firmware caveat are front-loaded in the first line, then a tight bulleted list of return fields, then the diagnostic interpretation. Every element earns its place, though the return-field bullets are somewhat verbose for three keys.

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?

For a read-only, zero-parameter tool with no output schema, the description supplies everything an agent needs: applicability by firmware, what comes back, and how to interpret it. Nothing essential 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?

The tool takes zero parameters, so there is nothing beyond the schema to clarify; the description correctly implies a single implicit target (the connected printer). Baseline of 4 applies for a no-parameter tool.

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 ('Get the bed mesh / probe data') and immediately scopes it to OctoPrint and Moonraker, plus explicitly excludes Bambu Lab. That distinguishes it from siblings like bed_level_status (which reports status) and trigger_bed_level (which initiates probing).

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?

Gives clear usage context — 'diagnose first-layer adhesion issues' and what a bad result looks like (high variance, dips/peaks). It never names an alternative tool to use when the firmware is unsupported or when a simple bed_level_status check would suffice, so the routing guidance is incomplete.

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

Deploy Server

Other Tools