Validate a spintax template
validate_spintaxStatic validation: returns diagnostics with severity, stable code, message and 1-based line/column. No "error"-severity diagnostic means the template is structurally sound — read the warnings before rendering, because some of them (plural.locale-missing) mean a block will not resolve. Pass knownVariables for names you will supply at render time to silence their variable.undefined warnings.
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": {
"template": "<template>"
},
"name": "validate_spintax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale for {plural …} arity, e.g. "en" (2-form), "ru" (3-form: ru/uk/be/sr/hr/bs) or "ar" (6-form). Omit for the 2-form default. | |
| template | Yes | Spintax template source (max 8192 characters). #include is disabled on this server. | |
| knownVariables | No | Variable names the caller will supply at render time (case-insensitive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when no error-severity diagnostics. | |
| errorCount | Yes | ||
| diagnostics | Yes | ||
| warningCount | Yes |