get_interaction
Calculate SHAP interaction values between two features in tree-based models. Specify the feature pair to see how their combined impact affects predictions.
Instructions
Return SHAP interaction values between two features (Tree models only).
Parameters
feature_a : str Name of the first feature. feature_b : str Name of the second feature.
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": {
"feature_a": "<feature_a>",
"feature_b": "<feature_b>"
},
"name": "get_interaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature_a | Yes | ||
| feature_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||