Skip to main content
Glama

counterpart_diagnostics

Read-onlyIdempotent

Counterpart contract (counterpart/1): this server's own diagnostics for a bug report, as files for the client to add to its export: the configured printers (model, serial, connection; firmware is not read), this server's settings, slicer…

Instructions

Counterpart contract (counterpart/1): this server's own diagnostics for a bug report, as files for the client to add to its export: the configured printers (model, serial, connection; firmware is not read), this server's settings, slicer path and version, CAD runtime status, recent tool errors, this run's stderr log (MQTT and connection messages). The Bambu network plug-in logs are not included. Redaction fails closed: configured secrets go in their encoded forms, JSON is redacted by key, and any log line that names a secret is withheld whole; serial numbers, error codes and whether a secret is set stay. Names, contents and notes stay within max_bytes; anything missing is listed in notes. Sends nothing to the printer.

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": "counterpart_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
printerNoOnly this configured printer (its serial number or host, as this server's other tools take them). Default: every configured printer.
max_bytesNoMost bytes the whole bundle may hold (default 4194304, at most 8388608).

Output Schema

NameRequiredDescriptionDefault
filesYes
notesYesWhat is missing or left out, and why.
packageYesThis server's npm package name.
versionYesThis server's npm package version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.97

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the description correctly spends its space on richer detail: exact bundle contents, explicit exclusions (firmware not read, Bambu network plug-in logs not included), fail-closed redaction rules, and that serial numbers, error codes and secret-set flags survive. It also discloses the size cap and that omissions are reported in notes, which no annotation or schema field conveys.

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?

The opening 'Counterpart contract (counterpart/1)' is protocol jargon that delays the point, and the body is one very long sentence with nested parentheticals. Once past the opener, however, nearly every clause carries distinct information about inclusions, exclusions, or redaction, so little is wasted.

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 tool with two optional params, an output schema, and full annotations, the description covers what an agent needs: what the bundle contains, what it deliberately omits, how redaction behaves on failure, how the size limit is applied, and that no printer contact occurs. Nothing material is left implicit.

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%, so both parameters are already documented, including the default scope and the byte ceiling with its bounds. The description adds only modest meaning, clarifying that max_bytes constrains 'names, contents and notes' of the whole bundle and that anything cut is listed in notes; that is useful but marginal over the schema.

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 concrete verb and resource: it builds a diagnostics bundle of this server's own state as files the client adds to a bug report. It distinguishes itself from printer-facing siblings by enumerating what it reads and stating 'Sends nothing to the printer.' It does not name a specific sibling such as counterpart_self_check, so differentiation is inferred rather than explicit.

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 'for a bug report, as files for the client to add to its export,' which tells the agent the context but not the trigger. There is no when-not guidance and no named alternative the agent should pick instead when it only wants a quick health check.

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