bayes_net_query
Computes exact probabilities for Bayesian network queries by enumeration, optionally conditioned on evidence and validated against the full joint distribution.
Instructions
Exact inference in a Bayesian network by enumeration, checked against the full joint distribution. nodes: {"Alarm": {"parents": ["Burglary", "Earthquake"], "cpt": {"T,T": 0.95, "T,F": 0.94, "F,T": 0.29, "F,F": 0.001}}, "Burglary": {"cpt": {"": 0.001}}, ...}; CPT values are P(node = true | parents).
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": {
"nodes": "<nodes>",
"query": "<query>"
},
"name": "bayes_net_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | ||
| query | Yes | ||
| evidence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |