Skip to content

Reference Overview

mcgpib exposes 22 tools, 5 prompts, and 1 resource through the Model Context Protocol. This section documents every parameter, return value, and edge case.

ToolDescription
list_bridgesList all configured bridges and their connection status
bridge_statusDetailed status of a specific bridge (firmware, address, transport)
connect_bridgeConnect to a bridge and run the initialization sequence
disconnect_bridgeClose connection to a bridge
configure_bridgeChange read timeout, auto mode, EOS, or EOI at runtime
ToolDescription
bus_scanDiscover all listeners on the GPIB bus via ++findlstn
serial_pollRead status byte from one or all instruments
check_srqCheck if the SRQ line is asserted and identify the source
bus_clearSend Selected Device Clear (SDC) or Universal Device Clear (DCL)
bus_triggerSend Group Execute Trigger (GET) to one or more addresses
interface_clearAssert IFC to become Controller-In-Charge
ToolDescription
instrument_querySend a SCPI query and return the response
instrument_writeSend a SCPI command with no response expected
instrument_identifySend *IDN? and parse the four-field response
list_instrumentsList all discovered instruments across all bridges
instrument_resetSend *RST to restore power-on defaults
instrument_localReturn instrument(s) to front panel control (GTL)
instrument_remotePut instrument(s) in remote mode, optionally with lockout
ToolDescription
raw_commandSend any ++ command directly to the AR488 bridge
raw_scpiSend raw data on the GPIB bus without SCPI interpretation
bus_diagnosticWrite a test byte to data or control bus lines for 10 seconds
parallel_pollSimultaneously read one status bit from each configured device

5 guided workflows encode domain knowledge about GPIB bench operations.

PromptDescription
initialize_benchConnect, scan, and identify all instruments on a bridge
troubleshoot_instrumentSystematic 6-step diagnostic for a non-responsive device
measurement_sequenceConfigure, trigger, and read a measurement
bus_health_checkFull infrastructure audit across all bridges
scpi_command_helpInstrument-specific SCPI command reference

1 static MCP resource provides protocol documentation without requiring tool calls.

URIDescription
gpib://protocol/commandsComplete AR488/Prologix ++ command reference