drift_check
Checks if embedded ERD diagrams in documentation align with the actual database schema, reporting added or removed tables, columns, or relations to prevent outdated docs.
Instructions
Check whether an ERD embedded in a doc (a .mmd file or a markdown file with a ```mermaid erDiagram block) still matches the current schema. Reports tables/columns/relations added or removed since the diagram was written. Use this in CI or before shipping docs.
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": {
"doc_path": "<doc_path>",
"schema_path": "<schema_path>"
},
"name": "drift_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_path | Yes | The .mmd or .md file that contains the current diagram. | |
| schema_path | Yes | The current schema source to compare against. | |
| schema_type | No |