Check AILANG code
ailang_checkType-check AILANG source. code is a whole module; the module line may be
omitted or be module main. Returns the ai-check JSON report on stdout:
check.passed and check.errors (with locations and fixes), and verify: each
function's requires/ensures proved with Z3 (verify.results: verified,
counterexample with a witness, or inconclusive after 5s per function).
Only pure functions (or ! {}) are proved; others report skipped/NOT_PURE.
verification names the overall result; "unavailable" means this server
had no solver, so the code was type-checked only and its contracts were not
proved (prove them locally with ailang verify).
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": {
"code": "<code>"
},
"name": "ailang_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |