solve_smtlib
Check satisfiability of logical formulas in SMT-LIB 2.0 format and retrieve satisfying models.
Instructions
Solve an SMT problem in SMT-LIB 2.0 format.
Example:
(declare-const x Int)
(declare-const y Int)
(assert (= (+ x y) 10))
(assert (= (- x y) 4))
(check-sat)
(get-model)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": {
"smtlib_code": "<smtlib_code>"
},
"name": "solve_smtlib"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| smtlib_code | Yes | SMT-LIB 2.0 format code | |
| timeout_ms | No | Timeout in milliseconds (default: 30000) |