forward_chaining
Derive conclusions from definite-clause rules and facts while tracking an agenda and count table at each step, then answer a query using the resulting inference trace.
Instructions
Forward chaining over definite clauses (e.g. "L & M => P") with the agenda and count table at every step.
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": {
"rules": "<rules>",
"facts": "<facts>",
"query": "<query>"
},
"name": "forward_chaining"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| facts | Yes | ||
| query | Yes | ||
| rules | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |