Atlas Scientific EZO Sensors

v0.1.2
io.github.K-Dense-AI/labmcp-atlas-ezo Checked 1 day ago Published 2 months ago

MCP server for Atlas Scientific EZO sensor circuits (pH, ORP, DO, EC, RTD, HUM, CO2, PRS) over UART.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_connection_info Get Connection Info

Report which instrument is connected (identity, address, simulated or real), whether the server is read-only, and the active safety limits. Call this first.

get_command_log Get Command Log

Return the most recent raw commands sent to / replies received from the instrument (newest last). Useful for debugging and for recording what was done.

ParameterTypeDescription
limitinteger

reconnect Reconnect

Close and re-open the connection to the instrument (e.g. after it was power cycled or a cable was re-plugged).

read_value Read Value

Take one reading (about 1 s) and return every enabled output with its unit: pH; ORP in mV; DO in mg/L (and % saturation if enabled); EC in µS/cm plus TDS (ppm), salinity (PSU) and specific gravity if enabled; RTD temperature; humidity %RH (+ air temperature, dew point); CO2 ppm; or pressure.

get_info Get Info

Report the circuit type, firmware, device name, supply voltage and last restart reason, LED state, calibration state, temperature compensation and type-specific settings (enabled outputs, EC probe constant K, DO salinity/pressure compensation).

get_calibration_status Get Calibration Status

Report how many calibration points are stored and what that means for this circuit type; for pH also the probe slope (acid/base % of ideal and zero offset in mV).

calibrate Calibrate

Store one calibration point. The probe must already be in the named standard (buffer, air, dry, ...) with a stable reading. Point names are validated per circuit type. pH: a `mid` calibration erases existing low/high points, so always do mid first. EC: do `dry` first.

ParameterTypeDescription
point *stringpH: mid|low|high; ORP: single; DO: atmospheric|zero; EC: dry|single|low|high; RTD: single; CO2: zero|high; PRS: zero|high
valueValue of the standard the probe is in (pH units, mV, µS/cm, temperature in the RTD's current scale, ppm CO2, pressure in current units). Omit for DO atmospheric/zero, EC dry and CO2/PRS zero.

clear_calibration Clear Calibration

Delete all stored calibration data (Cal,clear). pH/ORP/DO/EC/RTD return to uncalibrated; CO2/PRS return to their factory calibration. The probe must be recalibrated afterwards.

set_temperature_compensation Set Temperature Compensation

Set the sample temperature used to compensate pH, EC or DO readings (T,n; always °C). Not retained through a power cycle. Returns the value the circuit now uses.

ParameterTypeDescription
temperature_c *numberSample temperature in °C

set_probe_constant Set Probe Constant

EC circuits only: set the conductivity probe's cell constant K to match the probe (printed on it). Recalibrate after changing it. Returns the K now in use.

ParameterTypeDescription
k *numberCell constant K of the EC probe (e.g. 0.1, 1.0, 10)

set_do_compensation Set Do Compensation

DO circuits only: set salinity compensation (irrelevant below ~2500 µS/cm) and/or atmospheric pressure compensation (default 101.3 kPa; lower at altitude). Neither is retained through a power cycle.

ParameterTypeDescription
pressure_kpaAtmospheric pressure in kPa
salinitySample salinity (see salinity_unit)
salinity_unitstring'us_cm' (µS/cm) or 'ppt'

set_led Set Led

Turn the circuit's status LED on or off. Returns the new LED state.

ParameterTypeDescription
on *booleanTrue = LED on (default), False = off (e.g. light-sensitive cultures)

log_series Log Series

Record a series of readings (e.g. to watch a probe stabilise before calibrating, follow pH or DO in a bioreactor, or log temperature). Returns every point plus mean, stdev, min, max and drift per minute for each output.

ParameterTypeDescription
countintegerNumber of readings
interval_snumberSeconds between readings (>= 1)
save_pathOptional new .csv file for the full series (never overwritten)