Skip to main content
Glama
Gearotons

servomotor-mcp

get_hall_sensor_statistics

Retrieve hall sensor statistics for a motor to assess sensor health and noise, including minimum, maximum, sum, and measurement count since the last reset.

Instructions

Read back the statistics gathered from the hall sensors. Useful for checking the hall sensor health and noise in the system. [Firmware command "Get hall sensor statistics", group: Status & Monitoring.] Returns:

  • maxHall1: The maximum value of hall sensor 1 encoutered since the last statistics reset.

  • maxHall2: The maximum value of hall sensor 2 encoutered since the last statistics reset.

  • maxHall3: The maximum value of hall sensor 3 encoutered since the last statistics reset.

  • minHall1: The minimum value of hall sensor 1 encoutered since the last statistics reset.

  • minHall2: The minimum value of hall sensor 2 encoutered since the last statistics reset.

  • minHall3: The minimum value of hall sensor 3 encoutered since the last statistics reset.

  • sumHall1: The sum of hall sensor 1 values collected since the last statistics reset.

  • sumHall2: The sum of hall sensor 2 values collected since the last statistics reset.

  • sumHall3: The sum of hall sensor 3 values collected since the last statistics reset.

  • measurementCount: The number of times the hall sensors were measured since the last statistics reset. motor: an alias number (e.g. 88), a 16-hex-digit unique ID (e.g. "0123456789ABCDEF"), or "all" to broadcast to every motor on the bus (broadcasts get no responses back).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
motorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden, and it handles this well: 'Read back' signals a non-destructive read, the broadcast caveat ('broadcasts get no responses back') is disclosed, and the 10 return fields are each annotated with 'since the last statistics reset,' clarifying the data's temporal scope. It does not address reset semantics or interaction with control_hall_sensor_statistics, but the core read behavior is transparent.

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 description is utilitarian: purpose and context are front-loaded, followed by the return-field list. The 10-field enumeration is justified because there is no output schema, and each field repeats 'since the last statistics reset,' which is informative rather than pure redundancy. The motor parameter explanation sits at the end rather than before returns, a minor ordering quirk; the 'encoutered' typo is negligible.

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?

For a single-parameter read tool with no output schema and no annotations, the description is substantially complete: it covers purpose, return payload in detail, and parameter semantics. The main gaps are indirect references — how/where statistics get reset (control_hall_sensor_statistics) and any prerequisites — but nothing an agent needs to invoke this read correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must fully compensate — and it does. The motor parameter is documented with its three accepted formats (alias number, 16-hex-digit ID, 'all') plus the behavioral consequence of broadcasting. This adds meaningful semantics beyond the bare string type in the schema, all in one place alongside the returns.

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?

The description states a specific verb and resource — 'Read back the statistics gathered from the hall sensors' — and adds a discriminative purpose: 'checking the hall sensor health and noise in the system.' This distinguishes it from siblings like get_hall_sensor_position, capture_hall_sensor_data, and control_hall_sensor_statistics without ambiguity. The firmware command reference and group label further anchor its identity.

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?

The description gives a usage context — 'useful for checking hall sensor health and noise' — but never names alternatives or states when not to use it. Unlike control_hall_sensor_statistics (which suggests resetting statistics), this tool reads them; no explicit differentiation is made against that sibling or capture_hall_sensor_data. Context is implied but exclusions and alternative routing are absent.

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