Otii MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OTII_HOST | No | Host running the Otii application. | 127.0.0.1 |
| OTII_PORT | No | Otii TCP server port. | 1905 |
| OTII_DEVICE | No | Name of the Otii device to use. Only needed when more than one is connected. | |
| OTII_PASSWORD | No | Otii login password, used when OTII_CREDENTIALS is not set or the file is missing. | |
| OTII_USERNAME | No | Otii login username, used when OTII_CREDENTIALS is not set or the file is missing. | |
| OTII_CREDENTIALS | No | Path to a JSON file with your Otii login (see credentials.example.json). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Measures the energy consumption of a device under test powered by a Qoitech Otii Arc/Ace. Before calling measure, make sure you know the device's supply voltage and IO (UART) voltage; ask the user if they have not said. Never guess a supply voltage. To compare firmware versions, measure each and compare energy_between_messages over the same log markers, skipping the first cycle (occurrence >= 1) since it includes power-on. If the firmware marks phases by driving GPIOs wired to the Otii GPI1/GPI2 inputs, record channels 'i1'/'i2' and use energy_between_gpi_edges.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_devicesA | List the Otii devices (Arc/Ace) available to the Otii application. |
| measureA | Power the device under test from the Otii main output at main_voltage for duration_s seconds and record it, then turn power off. Returns the recording id and statistics for the whole recording. main_voltage: supply voltage in V. Check it is safe for the device under test. max_current_A: the main output cuts off above this current. channels: channels to record in addition to main current 'mc', e.g. 'mv' (main voltage), 'mp' (main power), 'i1'/'i2' (digital inputs GPI1/GPI2, for energy_between_gpi_edges). uart_baudrate: set to record the device's UART output (rx channel) as a timestamped log, which enables get_log and energy_between_messages. exp_voltage: expansion port voltage (1.2-5 V), i.e. the UART/GPIO logic level. Must match the device's IO voltage when recording UART or GPI. Left unchanged if not given. device: Otii device name; defaults to OTII_DEVICE or the only connected device. |
| list_recordingsB | List recordings in the active Otii project with id, name and length in seconds. |
| get_logB | UART log lines recorded from the device under test, with timestamps in seconds from
recording start. Defaults to the latest recording. Optionally keep only lines containing
|
| get_statisticsC | Statistics between two times (seconds from recording start). For the main current channel 'mc' this includes energy and charge. Defaults to the latest recording. |
| energy_between_messagesA | Energy from the n:th (0-based |
| energy_between_gpi_edgesA | Energy during the n:th (0-based |
| set_gpoB | Set Otii digital output GPO pin 1 or 2. Useful for switching hardware around the device under test, e.g. a USB/debugger connection that should be off while measuring. |
| set_ace_0_15_voltageB | Set the voltage of the Ace 0-15 V pin (0 turns it off). Ace only. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool targets a distinct action: device listing, recording control, pin control, log retrieval, and two clearly separated energy analyses (UART-message-based vs GPI-edge-based). The only mild overlap is between `measure` (which returns statistics for the whole recording) and `get_statistics` (which computes statistics for a time window), which an agent could occasionally confuse, but descriptions make the distinction workable.
Most tools follow a predictable verb_noun or verb_object pattern: list_devices, list_recordings, get_log, get_statistics, set_gpo, set_ace_0_15_voltage. Deviations are `measure` (bare verb) and the two `energy_between_*` noun-phrase tools, which are readable but break the dominant convention.
Nine tools is well-scoped for a power-measurement instrument: one per device/recording listing, one measurement driver, two pin/voltage setters, and three analysis tools. Every tool earns its place and none appears redundant.
The surface covers the core lifecycle: discover devices, run a measurement, list recordings, inspect logs/statistics, and compute energy over UART or GPI markers, plus output pin control. Minor gaps exist around recording management (rename/delete/export) and stopping an in-flight recording or streaming live current, but agents can work around these.