Skip to main content
Glama
Gearotons

servomotor-mcp

capture_hall_sensor_data

Capture hall sensor readings from a servomotor by setting capture type, channels, time steps per sample, and division factor, returning scaled and averaged data.

Instructions

Start sending hall sensor data (work in progress; don't send this command) [Firmware command "Capture hall sensor data", group: Other.] Parameters:

  • captureType: Indicates the type of data to capture. Currently 1 to 3 are valid.

  • nPointsToRead: Number of points to read back from the device

  • channelsToCaptureBitmask: Channels to capture bitmask. The first three bits are valid, which will turn on (0) or turn off (0) that hall sensor channel

  • timeStepsPerSample: Aquire a sample every this number of time steps. Time steps happen at the update frequency, which can be read with the Get product specs command

  • nSamplesToSum: Number of samples to sum together to make one point to transmit back

  • divisionFactor: Division factor to apply to the sum of the samples to scale it down before transmitting it so that it fits into the returned data type, which is a 16-bit number per each hall sensor Returns:

  • data: The data of the hall sensors after suming and averaging 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
captureTypeYes
nPointsToReadYes
nSamplesToSumYes
divisionFactorYes
timeStepsPerSampleYes
channelsToCaptureBitmaskYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are present, so the description must carry behavioral context. It does disclose the work-in-progress status, the broadcast-no-response behavior, scaling to 16-bit per hall sensor, and summing/averaging. It stops short of saying whether this starts an ongoing stream, how to stop it, or what side effects and error behavior occur.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The information is mostly front-loaded and the parameter/return sections make it readable, but the 'motor' parameter is listed after 'Returns:' rather than with the other inputs, and the bitmask line is self-contradictory. The length is justified by the lack of schema descriptions, but typos and misplaced content could be cleaned up.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter command with no annotations, no output schema, and zero schema descriptions, the text supplies essential parameter semantics and a return description. It is still incomplete for actual invocation: no constraints or captureType meanings, no stream/stop behavior, and no output format beyond the vague 'data' field.

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 description coverage is 0%, and the description compensates by explaining all seven parameters, including motor's alias/ID/'all' forms and captureType's 1-3 valid range. It loses a point because channelsToCaptureBitmask says both on and off are '0', which is contradictory, and no defaults or broader ranges are given.

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 opening phrase 'Start sending hall sensor data' names a concrete action and resource, and the firmware-command tag confirms it. It is not a tautology. However, it does not contrast with sibling tools such as get_hall_sensor_position or control_hall_sensor_statistics, so distinguishing it from alternatives is left mostly to the name.

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 explicit warning 'work in progress; don't send this command' gives a clear when-not-to-use signal and a reason. But there is no positive use case and no alternative tool is named, so an agent gets no guidance on what to use instead.

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