hwcontract
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HWCONTRACT_ROOT | No | Absolute path to the contracts folder. Relative contract paths resolve against it. Defaults to the process's working directory. | |
| HWCONTRACT_SAFE | No | Set to '1' to instantly disable hardware-touching tools (captures) while leaving pure judge tools working. | |
| HWCONTRACT_TOKEN | No | Bearer token required when the server is exposed over HTTP (e.g., via --http). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| judge_contractA | Judge observations against a contract -> pass/marginal/fail. No hardware; use for replay or when an adapter already captured. |
| capture_ws2812A | Capture the WS2812 data line via sigrok and return measured pulse-width observations (T0H/T1H/...). |
| check_ws2812A | Capture a live WS2812 signal AND judge it against a contract in one call. The one-shot an agent reaches for. |
| check_dshotB | Capture a live DShot600 ESC signal AND judge it against a contract in one call. |
| judge_serialA | Judge a captured serial log against expect/forbid patterns. No hardware; use for replay or logs another tool already captured. |
| check_serialB | Read a serial port for N seconds AND judge its log against a contract's expect/forbid patterns. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |