translate_to_mrgsolve
Convert NONMEM control streams to mrgsolve model code for pharmacokinetic simulations, handling ADVAN routines, parameters, and model blocks.
Instructions
Translate a NONMEM control stream (.ctl/.mod) to mrgsolve model code. Handles ADVAN1-13, THETAs, OMEGAs, $PK, $DES, $ERROR.
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": {
"ctl_path": "<ctl_path>"
},
"name": "translate_to_mrgsolve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctl_path | Yes | Path to NONMEM control stream | |
| output_path | No | Where to save the mrgsolve .mod file (optional) | |
| parameter_values | No | Override parameter values (e.g., from .ext final estimates) |