create_diagram
Create a new database diagram from DBML and validate syntax and table/column relationships before saving, so invalid schemas are rejected and warnings are returned.
Instructions
Create a new diagram. The DBML is validated first: syntax errors or relationships to missing tables/columns mean nothing is saved; warnings are returned with the result.
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": "create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Diagram title, shown on the dashboard. | |
| dbml_source | No | Initial DBML text. Empty diagram if omitted. |