Test spec
test_specRun a spec's embedded test cases (or ad-hoc given->expect cases) through the real reactive pipeline in a throwaway runtime, returning pass/fail plus per-field failures (path, expected, actual). Use this to certify domain behavior before create_model / promotion.
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": {
"spec": "<spec>"
},
"name": "test_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The ModelSpec whose tests to run. | |
| tests | No | Optional list of test cases (each with 'given' inputs and 'expect' outputs); omit to run the spec's own embedded 'tests'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | Total test cases run. | |
| failed | No | Cases that failed. | |
| passed | No | Cases that passed. | |
| results | No | Per-case results (with per-field failures on failure). |