Skip to main content
Glama
Otii MCP Server
by qoitech

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OTII_HOSTNoHost running the Otii application.127.0.0.1
OTII_PORTNoOtii TCP server port.1905
OTII_DEVICENoName of the Otii device to use. Only needed when more than one is connected.
OTII_PASSWORDNoOtii login password, used when OTII_CREDENTIALS is not set or the file is missing.
OTII_USERNAMENoOtii login username, used when OTII_CREDENTIALS is not set or the file is missing.
OTII_CREDENTIALSNoPath 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

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

Tools

Functions exposed to the LLM to take actions

NameDescription
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 contains.

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 occurrence) UART log line exactly equal to start_message to the next line exactly equal to end_message. end_message defaults to start_message, which gives one full cycle for firmware that prints a marker once per cycle. Use occurrence >= 1 to skip a first cycle that includes start-up. Defaults to the latest recording.

energy_between_gpi_edgesA

Energy during the n:th (0-based occurrence) interval where Otii digital input GPI pin (1 or 2) is high (or low if high=false), from the edge into that level to the edge out of it. For firmware that sets a GPIO wired to the Otii GPI while in a phase, e.g. active or sleeping; this is more precise than UART log markers. The level at recording start is not an edge, so only complete intervals count. The GPI channel must have been recorded (measure with channels=["i1"] or ["i2"], and exp_voltage set to the device's IO voltage). Use occurrence >= 1 to skip a first interval that includes start-up. Defaults to the latest recording.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 9 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues