Skip to main content
Glama
Gearotons

servomotor-mcp

set_maximum_motor_current

Set the maximum motor current and regeneration current for a motor or all motors, applying immediately without saving to memory. Adjusts torque with caution for overheating.

Instructions

Set the maximum motor current and maximum regeneration current. The values take effect immediately but are not saved to non-volatile memory, so they revert to the firmware default after a reset. [Firmware command "Set maximum motor current", group: Configuration.] NOTE: Higher current = more torque AND more heat; excessive settings can overheat the motor. Parameters:

  • motorCurrent (in milliamps): The motor current. The units are some arbitrary units and not amps. A value of 150 or 200 is suitable.

  • regenerationCurrent (in milliamps): The motor regeneration current (while it is braking). This parameter is currently not used for anything. Returns: success confirmation. 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
motorCurrentYes
regenerationCurrentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral transparency burden. It discloses immediate effect, non-persistence across resets, overheating risk, that regenerationCurrent is currently unused, and that broadcasting to 'all' yields no responses. This is strong operational transparency, though it omits error cases and prerequisites.

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 well front-loaded with the core purpose and key caveat, then organizes parameter notes in a readable list. Every sentence adds useful information, though the placement of motor addressing after 'Returns' makes the structure slightly less clean than it could be.

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 three-required-parameter configuration command with no annotations and no output schema, the description covers behavior, persistence, safety, return confirmation, and addressing formats. It does not discuss invalid values or connection prerequisites, but it is complete enough for routine invocation.

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%, so the description must compensate, and it largely does: it explains motor addressing formats (alias, unique ID, or 'all'), suggests suitable motorCurrent values (150/200) and notes arbitrary units, and flags regenerationCurrent as unused. The 'in milliamps' label followed by 'units are some arbitrary units and not amps' is internally inconsistent, which prevents a higher score.

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 opens with 'Set the maximum motor current and maximum regeneration current,' which is a specific verb and resource. It clearly distinguishes itself from sibling configuration commands like set_maximum_velocity and set_maximum_acceleration by naming the exact resource, though it does not explicitly mention those alternatives.

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?

The description provides clear usage context: values take effect immediately, are not saved to non-volatile memory, and revert after reset. It also warns that excessive current can overheat the motor, which guides safe usage. However, it does not explicitly state when to use this command versus an alternative or what a persistent configuration path would be.

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