import_sql
Converts CREATE TABLE and ALTER TABLE SQL DDL into DBML for diagrams. Read-only; pass the output to create_diagram or update_diagram to save changes.
Instructions
Convert CREATE TABLE / ALTER TABLE SQL DDL into DBML text. Read-only — never touches the server; pass the result to create_diagram or update_diagram to actually save it.
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": {
"sql": "<sql>"
},
"name": "import_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL text to convert (CREATE TABLE / ALTER TABLE ... FOREIGN KEY statements). |