Validate a catalog document
validate_catalogDry-run a catalog DSL document: compile and lint it, write nothing. Returns what it would produce and every problem found, each addressed by JSON path. The grammar is foldsquare://schemas/catalog-dsl.json; the field ids are foldsquare://schemas/product-fields.json. It is free, and the issues it returns are specific enough to fix without guessing, so it suits anything non-trivial before create_catalog.
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": {
"document": "<document>"
},
"name": "validate_catalog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | A foldsquare.catalog/v1 document |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| issues | Yes | Problems in a document that parses | |
| summary | No | What the document would build | |
| schemaIssues | Yes | The document does not parse; fix these first |