explain_prediction
Explain a single model prediction by computing SHAP feature contributions. Provide a dataset row index or inline feature values to get a clear breakdown of each feature's impact.
Instructions
Return SHAP breakdown for a single instance.
Parameters
index : int | None Row index in the analyzed dataset. data : dict[str, Any] | None Inline feature dictionary for explaining an arbitrary instance.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "explain_prediction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||