MCP Tools Reference
mcp_pykingenie exposes the following tools to your AI assistant. These
tools are intended only for surface-based binding data: Octet and Gator BLI
experiments, Biacore result files, SPR text exports, Carterra CSV exports and
generic steps/traces tables.
Data Import
Import tools accept absolute paths, or paths relative to the active MCP data
directory shown by print_data_dir. Imported experiments are kept in memory
for the current MCP session and can be checked with list_experiment_names.
Tool |
Description |
|---|---|
|
Report the format of each file (or of each file in a folder) without importing it. |
|
Import one experiment of any supported format, detected from file content: Octet, Gator, Biacore |
|
Read an info sheet ( |
|
Load the bundled Octet BLI example dataset. |
|
Import an Octet experiment from a folder of |
|
Import a Gator experiment from a folder or |
|
Import a KinGenie surface-simulation CSV file with trace and concentration columns. |
Import Notes
import_binding_dataPass files and/or folders of one experiment; folders are reduced to their files of a known format. Octet, Gator, Biacore and KinGenie files carry their own timing and concentrations. SPR text and Carterra exports need
association_start/association_end(seconds),concentrations(or, for Carterra,top_concentrationanddilution_factor) andsample_id, or aninfo_sheetthat supplies them. Setsingle_cycle=Truefor single-cycle kinetics. Missing concentrations import as NaN with a warning and can be set later in theobtain_sample_info_tabletable.import_octet_experimentPass a folder path. The folder should contain the Octet
.frdfiles and sample plate files exported by the Octet software. If the path is not absolute, it is resolved inside the active MCP data directory.import_gator_experimentPass either a folder path or a
.ziparchive. The input should include the assay channel CSV files plusSetting.iniandExperimentStep.ini. Zip archives are extracted into the active MCP data directory, then loaded from the extracted folder.import_kingenie_surface_csvPass a CSV file path. The file is expected to describe surface-based traces, with columns such as
Time,Signal,Smax, andAnalyte_concentration_micromolar_constant.load_octet_exampleLoads the packaged example as
Example Experiment. This is useful for verifying that plotting, preprocessing, and fitting tools are working before importing your own data. Download the raw example files asoctet_bli_example_data.zip.
File Utilities
Tool |
Description |
|---|---|
|
Print the current output data directory path. |
|
List all files in a specified folder. |
Experiment Inspection
Tool |
Description |
|---|---|
|
List all loaded experiment names. |
|
Remove loaded experiments by name or 1-based index, e.g. after a wrong import. Existing fitting datasets are cleared. |
|
Get a property, such as |
|
List all attributes of a single experiment. |
|
Get analyte concentration and sensor metadata as JSON, including the experiment each row belongs to. |
Data Processing
Tool |
Description |
|---|---|
|
Align the association phase of sensors. |
|
Align the dissociation phase of sensors. |
|
Subtract a reference sensor from other sensors. |
|
Subtract one surface-based experiment from another sensor by sensor. |
|
Subtract paired sensor columns within one surface-based experiment. |
|
Align and subtract a reference sensor in one step. |
|
Average selected sensors and add the averaged traces to the experiment. |
|
Delete selected sensor traces from an experiment. |
XY Plotting
These tools use the XY plotting helpers of
pykingenie.utils.plotting_xy. They save the image in the format set with
update_xy_plot_config (png by default; jpeg, webp, svg and
pdf are also supported) and, with save_html=True, a standalone
interactive HTML file. The earlier versions of these tools, based on the
PyKinGenie Plotly helpers, are kept commented out in
mcp_pykingenie/tools/_plotting_legacy.py.
Tool |
Description |
|---|---|
|
Plot the sample plate layout for an experiment. |
|
Get the sensor legend DataFrame used by trace plots. |
|
Plot all BLI steps, one panel per experiment. Accepts the table from |
|
Plot association and dissociation traces from fitting datasets, with fitted curves when available. |
|
Plot steady-state binding data, with fitted curves when available. |
|
Plot the kinetics fitting residuals (observed minus fitted) over time. Requires |
|
Plot the steady-state fitting residuals (observed minus fitted) against ligand concentration. Requires |
XY Plot Settings
All XY plots share one instance of each PyKinGenie configuration dataclass.
The update tools change only the parameters that are provided, so settings
build up across calls until reset_xy_plot_configs is used. Fields left
unset keep the defaults of each plot, such as its size or axis labels. Range
and bounds fields are cleared by passing an empty list.
Tool |
Description |
|---|---|
|
Plot size in pixels, image format, font size, title, initial x/y ranges, and the concentration palette ( |
|
Grid lines, ticks, line widths, labels, scales, axis reversal, and navigation bounds ( |
|
Columns or stacked panels, spacing, shared axes, subplot titles, and splitting by Smax ID ( |
|
Legend visibility, position, columns, title, font size, and interactions ( |
|
Markers, lines, opacity, fitted curves, smoothing, and sampling ( |
|
Show the current XY plot settings. |
|
Restore all XY plot settings to the defaults. |
Fitting
Tool |
Description |
|---|---|
|
Generate fitting datasets from a sample info JSON table. The table is checked row by row before the existing fits are reset; unselected rows and zero-concentration references are left out. |
|
Run steady-state fitting as an alternative to kinetic fitting, keeping existing kinetic results. Supports |
|
Run kinetic fitting as an alternative to standalone steady-state fitting, keeping existing steady-state results. The tool handles PyKinGenie’s required starting values internally. |
|
Calculate leave-one-out errors for fitted kinetic parameters. Run after |
|
Retrieve the leave-one-out mean and standard deviation for fitted thermodynamic parameters. |
|
Retrieve fitting results, including |
|
Retrieve kinetic and steady-state fitted parameters, labeled by fit type and dataset. Returns an empty list before fitting. |
|
Retrieve the correlation matrix of the fitted parameters for each fitting dataset, for the latest |
|
Export raw or fitted association/dissociation trace points from generated fitting datasets as JSON records. |
|
Report whether fitting datasets, fitted kinetic curves, and fitted steady-state curves are available. |
|
Return |