db_generate_erd
Generate a Mermaid ER diagram from SQL table definitions. Provide DDL CREATE TABLE statements to visualize database relationships clearly.
Instructions
Parses SQL table definitions and generates a clean Mermaid Entity-Relationship (ER) Diagram
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": {
"schemaSql": "<schemaSql>"
},
"name": "db_generate_erd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemaSql | Yes | DDL SQL string containing CREATE TABLE statements |