model_predict
Get predictions from a fitted model at chosen predictor values or for new cases, with confidence levels.
Instructions
Predictions from a fitted model. Pass at for estimated marginal means at chosen predictor values (e.g. {'dose': [0, 10, 20]}), holding everything else at its average - this is the usual way to describe what a model implies. Pass newdata for predictions on specific new cases, or neither for fitted values on the original data.
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>"
},
"name": "model_predict"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Predictor values for estimated marginal means, e.g. {'age': [20, 40, 60]}. | |
| type | No | Prediction scale: 'response' or 'link'. | response |
| model | Yes | Name of a fitted model in the session. | |
| digits | No | Decimal places. | |
| newdata | No | New cases as columns, e.g. {'age': [30, 40], 'sex': ['m', 'f']}. | |
| conf_level | No | Confidence level. |