generate_ddl
Generate SQL DDL from a PowerDesigner PDM to a .sql file, returning SQL text and file info. Uses the model's native DBMS, with clear errors for mismatched DBMS requests.
Instructions
Generate SQL DDL for a PDM using PowerDesigner's native database generation for the model's DBMS. output_path: target .sql file (created if the directory exists). Returns the SQL text plus file info. The model's own DBMS is used; requesting a different dbms returns a clear error.
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": {
"model_id": "<model_id>",
"output_path": "<output_path>"
},
"name": "generate_ddl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dbms | No | ||
| model_id | Yes | ||
| output_path | Yes |