check_sat
Determine if a set of logical constraints is satisfiable using Z3. Input constraint expressions and optional variable types to find a valid solution.
Instructions
Check satisfiability of a list of constraints.
Provide constraints as Z3 Python expressions. Variables will be auto-declared based on usage.
Example constraints:
"x + y == 10"
"x > 0"
"And(x < 100, y < 100)"
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": {
"constraints": "<constraints>"
},
"name": "check_sat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| constraints | Yes | List of Z3 constraint expressions | |
| variables | No | Variable declarations: {name: type} where type is 'int', 'real', 'bool', or 'bitvec:N' | |
| timeout_ms | No | Timeout in milliseconds (default: 30000) |