Validate spec
validate_specValidate a ModelSpec WITHOUT creating it: returns a 'valid' flag plus structured findings (errors + warnings, each with a location and message). Use this to iterate on a draft — fix the reported errors, re-validate — before committing with create_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": {
"spec": "<spec>"
},
"name": "validate_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The ModelSpec to validate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | True when the spec has no errors. | |
| errors | No | Blocking findings (each with location + message). | |
| warnings | No | Non-blocking findings. |