validate_model
Compare a model's declared shape against the D1 schema to detect drift and return a list of issues.
Instructions
Compare a single model's declared shape (table, casts, softDeletes, timestamps, revisions) against the actual local D1 schema and return any drift as a list of issues.
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": {
"name": "<name>"
},
"name": "validate_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Model class name |