Skip to main content
Glama

rattus_send_twist

Send linear and angular velocity commands to an Arduino by packing a CRC-8/MAXIM-validated CMD_TWIST frame and writing it to the open serial port.

Instructions

Phase 2.7 PC-masquerade: pack a CMD_TWIST frame (CRC-8/MAXIM) and write it to the open serial port (Uno USB). Requires serial_open first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seqNoSequence byte (default auto-increment)
vMmSYesLinear velocity mm/s
omegaMradSYesAngular velocity mrad/s
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the frame structure (CMD_TWIST), integrity check (CRC-8/MAXIM), target (open serial port), and dependency on serial_open. However, it does not mention error behavior or return values, which would be richer context.

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

Conciseness5/5

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

The description is a single, dense sentence that efficiently conveys purpose, protocol, destination, and prerequisite. Every clause adds value with no repetition or filler.

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?

The description gives the essential context: what frame is sent, how it is encoded, where it goes, and what must happen first. It does not explain response handling or side effects, but since there is no output schema, this is not a major gap. It is sufficiently complete for a focused serial command tool.

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%, with clear descriptions for vMmS and omegaMradS (linear and angular velocities) as well as seq. The description does not add any parameter-level detail beyond what the schema provides, so the baseline of 3 is appropriate.

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 clearly states the tool packs a CMD_TWIST frame with CRC-8/MAXIM and writes it to the serial port, specifying the exact resource and action. It is distinguished from general serial_write by naming the specific command type and protocol.

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?

It explicitly states a prerequisite: "Requires serial_open first", which gives clear context for when this tool can be used. It does not name alternatives directly, but the sibling context and the phrase "PC-masquerade" imply it is for sending twist commands, and serial_write is for raw writes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JShort-bufr/arduino-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server