PhysiCell Configuration Builder
v2.5.2MCP server for building, inspecting, and exporting PhysiCell and PhysiBoSS configuration files
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_session
Create an isolated, durable BioMASS authoring session.
| Parameter | Type | Description |
|---|---|---|
label | Optional human-readable model label. | |
set_as_default | boolean | Make the created session the active default. |
list_sessions
List active sessions and current generated revisions.
close_session
Close a session, retaining its authoring snapshot and artifacts on disk.
| Parameter | Type | Description |
|---|---|---|
session_id | BioMASS session ID; omit to use the active default. |
restore_session
Restore authoring state from a previously created BioMASS session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Complete UUID of a closed or previous-process artifact session. |
import_neko_handoff
Verify and import a NeKo network and its complete reference provenance.
| Parameter | Type | Description |
|---|---|---|
handoff_bundle | Object returned by NeKo export_handoff_bundle, for servers that cannot read NeKo's files. Use instead of manifest_path. | |
manifest_path | Path to a NeKo-to-BioMASS handoff manifest. Omit when passing handoff_bundle. | |
session_id | BioMASS session ID; omit to use the active default. |
import_text
Import or replace standalone text and its line provenance atomically. Read docs://biomass/reaction_syntax and docs://biomass/authoring_examples before writing text. Only the documented Text2Model subset is supported.
| Parameter | Type | Description |
|---|---|---|
text * | string | Complete Text2Model document; preserved verbatim. |
biological_context | Optional biological context for standalone modelling. | |
line_evidence | Complete evidence/assumption mapping for document lines; omitted clears old line links. | |
session_id | BioMASS session ID; omit to use the active default. |
set_evidence
Store agent-extracted evidence, including contradictory or inaccessible sources.
| Parameter | Type | Description |
|---|---|---|
records * | array | Evidence records to upsert by evidence_id; all other records are preserved. |
session_id | BioMASS session ID; omit to use the active default. |
set_reactions
Replace the COMPLETE ordered reaction list, retaining prior records explicitly. Before authoring, read docs://biomass/reaction_syntax, docs://biomass/authoring_examples, docs://biomass/network_to_reactions, and docs://biomass/model_editing for incremental edits that preserve configuration. Signed edges and PMID identifiers alone do not justify mechanisms or kinetics.
| Parameter | Type | Description |
|---|---|---|
reactions * | array | Complete ordered replacement of reaction records; use stable IDs and share_parameters_with. |
session_id | BioMASS session ID; omit to use the active default. |
import_text_file
Read a Text2Model file verbatim for expansion or editing with build_reactions. Source files are not modified. Read docs://biomass/model_editing for the versioned editing interface and preservation of line-based parameters.
| Parameter | Type | Description |
|---|---|---|
path * | string | Existing UTF-8 Text2Model file; contents are copied, never executed as a Python package. |
biological_context | Optional agent-supplied biological context for the imported model. | |
line_evidence | Complete optional evidence links for imported document lines; omitted clears prior line links. | |
session_id | BioMASS session ID; omit to use the active default. |
inspect_reactions
Inventory stable reaction IDs, text lines, and generated parameter names. Imported reactions initially use IDs such as line_3. This tool also works on an empty model or a document awaiting dependency repairs.
| Parameter | Type | Description |
|---|---|---|
check_generation | boolean | Compile in a disposable worker to report actual species, parameters, and dependencies. |
session_id | BioMASS session ID; omit to use the active default. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
build_reactions
Construct or edit reactions from a conversation, network, or existing file. Read docs://biomass/model_editing for template participants and examples. Scientific interpretation belongs to the calling agent. Metadata is optional; new records are unreviewed unless the agent explicitly annotates them.
| Parameter | Type | Description |
|---|---|---|
edits * | array | Explicit add/update/remove operations. Templates generate syntax; statement accepts raw Text2Model, including @rxn custom kinetics. |
expected_version * | integer | Document version returned by inspect_model/inspect_reactions; stale edits are rejected. |
append_lines | Document-mode directives/comments to append; reactions belong in edits. | |
configuration | Optional complete replacement configuration, applied in the same transaction. | |
line_edits | Document-mode directive/comment replacements by original line number; None text leaves a removal comment. | |
preview | boolean | Validate and report the proposed change without changing session state. False applies the batch atomically. |
prune_unused_values | boolean | Explicitly remove numerical defaults for symbols absent after editing; dependent expressions/conditions still require explicit repair. |
session_id | BioMASS session ID; omit to use the active default. | |
species_mapping | Optional network node IDs to species names. A participant can name a node if it maps to exactly one species. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
configure_model
Configure observables, numerical defaults, conditions, time, and unit provenance.
| Parameter | Type | Description |
|---|---|---|
configuration * | Complete replacement configuration. In document mode, structural directives belong in the text. | |
session_id | BioMASS session ID; omit to use the active default. |
inspect_model
Inspect authoring state, evidence, retained revisions, and edge coverage.
| Parameter | Type | Description |
|---|---|---|
session_id | BioMASS session ID; omit to use the active default. |
validate_model
Report syntax and optional generation validity independently of scientific validity.
| Parameter | Type | Description |
|---|---|---|
check_generation | boolean | Also compile and import in a disposable worker; no retained model revision. |
session_id | BioMASS session ID; omit to use the active default. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
generate_model
Generate a new immutable BioMASS revision from the current authoring state.
| Parameter | Type | Description |
|---|---|---|
session_id | BioMASS session ID; omit to use the active default. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
visualize_model
Visualize a generated species graph without requiring simulation or calibration.
| Parameter | Type | Description |
|---|---|---|
format | string | Graph output format; HTML is interactive and does not open a browser. |
options | Bounded layout and interactive-control options. | |
revision | Generated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision. | |
session_id | BioMASS session ID; omit to use the active default. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
export_model_graph
Export BioMASS's directed species projection as DOT.
| Parameter | Type | Description |
|---|---|---|
revision | Generated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision. | |
session_id | BioMASS session ID; omit to use the active default. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
run_simulation
Run bounded exploratory simulation, recording every condition's numerical values.
| Parameter | Type | Description |
|---|---|---|
scenario * | Named numerical scenario; explicitly opt into placeholders if any remain. | |
revision | Generated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision. | |
session_id | BioMASS session ID; omit to use the active default. | |
timeout_seconds | integer | Worker timeout in seconds, from 1 to 300; default 60. |
export_model_bundle
Export a selected revision, evidence, graphs, runs, and reproduction script.
| Parameter | Type | Description |
|---|---|---|
revision | Generated revision ID; omit for the current revision. Edits require regeneration or explicit selection of an older revision. | |
session_id | BioMASS session ID; omit to use the active default. |
list_generated_files
List all nested session artifacts, including snapshots and diagnostics.
| Parameter | Type | Description |
|---|---|---|
session_id | BioMASS session ID; omit to use the active default. |
list_artifact_sessions
Discover artifact sessions saved on disk across server restarts.
clean_generated_files
Delete generated artifacts while preserving authoring state and source lineage.
| Parameter | Type | Description |
|---|---|---|
session_id | BioMASS session ID; omit to use the active default. |