create_schema
Generate PostgreSQL tables and foreign key constraints from Mermaid ER diagrams by executing DDL statements, eliminating manual schema creation for automatic REST and GraphQL API generation.
Instructions
Create PostgreSQL tables from the ER diagram. This will execute DDL statements to create tables and foreign key constraints.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagram | No | Mermaid ER diagram text. Uses configured source if not provided. | |
| dropExisting | No | Drop existing tables before creating. Default: false |