Sartorius Balance

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

MCP server for Sartorius laboratory balances (SBI protocol).

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_weight Read Weight

Read the current net weight from the balance (ESC P). With stable=True the server polls until the balance reports a stable value; if it cannot settle (draughts, vibration, evaporation) you get an error; retry, or use stable=false for the current value.

ParameterTypeDescription
stablebooleanWait for a stable reading (recommended)
timeout_snumberMax. seconds to wait for stability

log_weight_series Log Weight Series

Record a series of immediate (unfiltered) readings to monitor drift, evaporation, moisture uptake or stabilisation. Returns every reading plus summary statistics.

ParameterTypeDescription
countintegerNumber of readings
interval_snumberSeconds between readings

tare Tare

Tare the balance (ESC U, or ESC T on legacy balances): the current load (e.g. an empty container) becomes the tare. Then waits for a stable reading and checks that it is ~0; returns that reading.

ParameterTypeDescription
timeout_snumberMax. seconds to wait for the tared reading

zero Zero

Zero the balance (ESC V). Only works with the pan (nearly) empty, within the balance's zero-setting range; clears the tare. Confirms by reading ~0 afterwards.

ParameterTypeDescription
timeout_snumberMax. seconds to wait for the zeroed reading

run_internal_adjustment Run Internal Adjustment

Adjust (calibrate) the balance with its built-in weight (ESC Z; isoCAL models only). The pan must be empty and the balance undisturbed. SBI sends no completion message, so the server watches for the adjustment status and waits until the balance weighs again; check `observed_adjustment` and the balance display or GLP printout for the result.

ParameterTypeDescription
timeout_snumberMax. seconds for the adjustment

set_ambient_conditions Set Ambient Conditions

Adapt the balance's filter to the ambient conditions (ESC K/L/M/N). Use 'unstable' or 'very_unstable' for draughty or vibrating benches (slower but steadier readings).

ParameterTypeDescription
conditions *string

lock_keypad Lock Keypad

Block or unblock the balance keys, e.g. so nobody tares by accident during a long logging run.

ParameterTypeDescription
locked *booleanTrue blocks the balance keys (ESC O), False unblocks (ESC R)