Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
simNoRun using the built-in simulator instead of real ODrive hardware, passed with the --sim flag.
configYesPath to the arm.toml settings file, passed with --config (e.g. --config "$PWD\arm.toml").

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

You control real capstan-drive robot joints (Group 26K66). A person is next to the hardware. Rules:

  • Angles are joint degrees. Call status before the first move and read limits_deg.

  • After every reconnect a joint has no reference. Prefer home: it creeps the joint into its reference stop by itself, zeros there, then moves to home_deg. It MOVES the joint, so say so and wait for the user's go-ahead (hands clear) before calling it.

  • zero_here is the manual fallback. Only call it after the user says the joint is ON its reference stop and the motor is off. Never assume this.

  • Move in small steps the first time on a joint; say what you will move before moving.

  • If a move result is not "arrived", stop, report the result, and do not retry until the user has checked the hardware.

  • If the user says stop, call stop immediately.

  • Finish a session with park.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
jointsA

List the configured joints with their limits, home angle and reference stop. Does not touch hardware.

statusB

Read joint state without moving: on/off, angle (deg), current (A), bus voltage, ODrive errors.

zero_hereA

Set the angle reference. ONLY after the user confirms the motor is off and they are holding the joint on its reference hard stop. Needed after every ODrive power-up.

homeA

Find the reference automatically: creep slowly (current-limited) into the reference stop, zero there, then enable and move to home_deg. MOVES the joint: get the user's go-ahead first. Works from any starting position; stop() aborts it.

enableA

Turn the motor on (closed loop). It holds the current angle; nothing moves yet.

disableA

Turn the motor off (goes limp; a loaded joint may drop).

stopA

Emergency software stop: every motor off now, aborting any move in progress.

moveB

Move a joint to an absolute angle in degrees and wait until it arrives. Returns result ('arrived' or the reason it stopped), final angle, error and peak current.

jogB

Move a joint by a relative amount (max 30 deg per call) from where it is holding.

parkA

Move joint(s) to their home angle, then turn the motor off. Use at the end of a session. With 'all', joints are parked in reverse config order (wrist side first).

clear_errorsA

Clear ODrive error flags. Only after the cause is understood. Returns fresh status.

historyB

Recent move results plus accuracy summary (mean / max absolute error of arrived moves).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation4/5

Most tools have clearly distinct purposes, and descriptions explicitly separate motion commands (move=absolute, jog=relative, home=auto-referencing, park=go home then disable). Minor overlap remains between zero_here and home (both establish the angle reference) and between park and a move-to-home_deg, which an agent could conflate without reading carefully.

Naming Consistency4/5

There is a coherent readable pattern: noun-style names for read-only queries (joints, status, history) and imperative verbs for actions (enable, disable, stop, move, jog, park, home). The only deviations are the two snake_case verb_noun names (zero_here, clear_errors) breaking an otherwise uniform single-token scheme.

Tool Count5/5

Twelve tools is well within the sweet spot and each one maps to a distinct operation an agent actually needs (query, reference, energize, move, safety stop, error recovery, telemetry). No tool feels like filler.

Completeness4/5

The surface covers the full safe-motion lifecycle: inspect config/state, establish reference, enable, move, stop, park, clear faults, and review accuracy history. Gaps are minor — joints is read-only (no way to add or reconfigure a joint), and there is no way to adjust current limits or other motion parameters from the tool set.