import_sql
Replace an existing ERD by parsing SQL from multiple dialects, preserving the project id. Rejects sources with no tables.
Instructions
Fully replaces an existing ERD with the SQL parse result (project id preserved). Rejected as invalid_source when no tables are found.
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": {
"source": "<source>",
"sql": "<sql>"
},
"name": "import_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| source | Yes | Target ERD — exactly one of a local file ({file}) or a server ERD ({erdId}) | |
| dialect | No | Defaults to mysql |