Skip to main content
Glama
Gearotons

servomotor-mcp

get_debug_values

Retrieve motor control parameters, profiler times, hall sensor voltages, and PWM data for diagnosing servomotor performance and fine-tuning movements.

Instructions

Get debug values including motor control parameters, profiler times, hall sensor data, and other diagnostic information. [Firmware command "Get debug values", group: Status & Monitoring.] Returns:

  • maxAcceleration: Maximum acceleration setting

  • maxVelocity: Maximum velocity setting

  • currentVelocity: Current velocity

  • measuredVelocity: Measured velocity

  • nTimeSteps: Number of time steps left in the current move

  • debugValue1: Debug value 1

  • debugValue2: Debug value 2

  • debugValue3: Debug value 3

  • debugValue4: Debug value 4

  • allMotorControlCalculationsProfilerTime: All motor control calculations profiler time

  • allMotorControlCalculationsProfilerMaxTime: All motor control calculations profiler maximum time

  • getSensorPositionProfilerTime: Get sensor position profiler time

  • getSensorPositionProfilerMaxTime: Get sensor position profiler maximum time

  • computeVelocityProfilerTime: Compute velocity profiler time

  • computeVelocityProfilerMaxTime: Compute velocity profiler maximum time

  • motorMovementCalculationsProfilerTime: Motor movement calculations profiler time

  • motorMovementCalculationsProfilerMaxTime: Motor movement calculations profiler maximum time

  • motorPhaseCalculationsProfilerTime: Motor phase calculations profiler time

  • motorPhaseCalculationsProfilerMaxTime: Motor phase calculations profiler maximum time

  • motorControlLoopPeriodProfilerTime: Motor control loop period profiler time

  • motorControlLoopPeriodProfilerMaxTime: Motor control loop period profiler maximum time

  • hallSensor1Voltage: Hall sensor 1 voltage

  • hallSensor2Voltage: Hall sensor 2 voltage

  • hallSensor3Voltage: Hall sensor 3 voltage

  • commutationPositionOffset: Commutation position offset

  • motorPhasesReversed: Motor phases reversed flag

  • maxHallPositionDelta: Maximum hall position delta

  • minHallPositionDelta: Minimum hall position delta

  • averageHallPositionDelta: Average hall position delta

  • motorPwmVoltage: Motor PWM voltage 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

B3.4/5.0
Behavior2/5

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

No annotations are present, so the description must carry the full burden of behavioral disclosure. It does note that broadcasting to 'all' yields no responses, which is a useful behavioral detail. However, it does not state whether the operation is read-only, what happens on invalid motor IDs, error handling, or any side effects. The description is largely a data dictionary rather than a behavioral contract.

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 front-loaded with a clear purpose sentence, followed by a structured bullet list of return fields, and ends with the parameter explanation. The list is long (30+ items) but each entry is useful for setting expectations. No redundant prose; the structure is efficient for the amount of information conveyed.

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?

Given that there is no output schema, the description's exhaustive list of return fields is essential and well provided. The parameter behavior is explained. It lacks details on error cases, units, or return format structure, but for a debug data retrieval tool, it covers the key usage aspects. The absence of usage guidelines is a gap, but that is addressed in a separate dimension.

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?

The description adds substantial meaning to the 'motor' parameter, which the schema only types as string. It explains accepted formats (alias number, 16-hex-digit ID, 'all'), provides examples, and explicitly states that broadcasts get no responses. This fully compensates for the 0% schema description coverage.

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 clearly states the tool retrieves debug values and lists specific categories (motor control parameters, profiler times, hall sensor data). It goes beyond a tautology by enumerating the return fields, giving a concrete sense of scope. However, it does not explicitly differentiate from sibling tools like get_status or get_motor_status, which also return diagnostic information, so it is not a perfect 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention scenarios, prerequisites, or exclusions. It only describes what it returns and the motor parameter format. The mention of the firmware command group (Status & Monitoring) is a reference, not usage guidance.

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