validate_model
Run structural checks on a model to detect missing primary keys, duplicate codes, and invalid references. Get errors with locations, fix issues, and re-run to confirm.
Instructions
Run built-in structural checks on a model: missing primary keys, duplicate table/column codes, missing data types, missing comments, FK type mismatches, dangling references, duplicate/redundant indexes. Returns passed/errors/warnings with object locations - fix issues and re-run to close the loop.
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": {
"model_id": "<model_id>"
},
"name": "validate_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes |