run_twin_experiment
Integrate a declared mass-action model with unperturbed controls, scheduled parameter changes, numerical verification, sensitivity bounds and optional observations. Read twin_experiment_guide first. Returns a replay manifest and raw errors, never a disease cure claim. No remote code or learned-model weights are downloaded or executed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"duration": "<duration>",
"arms": "<arms>"
},
"name": "run_twin_experiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arms | Yes | 1 to 4 intervention arms: {id, startStep, rateMultipliers {reactionId: 0 to 10}}. A baseline arm is added automatically. | |
| model | Yes | Mass-action model: {id, version, context, scope, provenance, timeUnit, concentrationUnit, species[{id, initial}], reactions[{id, rate, reactants, products}], conservedPools}. Up to 16 species and 24 reactions. See twin_experiment_guide. | |
| steps | No | Number of output time steps, 4 to 100. Default 40. | |
| dataset | No | Optional dataset declaration for the observations: {id, citation (https), sha256, kind, split, independentOfModelFit}. | |
| duration | Yes | Simulated time span in model.timeUnit, greater than 0 and at most 1000. Example 48. | |
| uncertainty | No | Up to 3 reactions with {reaction, low, high} rate bounds for sensitivity runs. | |
| observations | No | Up to 200 measured values {arm, step, species, value} in model.concentrationUnit, compared against the simulation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The answer. Shape depends on the tool; describe_tool documents it. | |
| _meta | No | source, generatedAt, sources (per-source lastSyncedAt and ageHours), rateLimit, disclaimer. |