generate_erd
Generates an ERD.md with a valid Mermaid diagram, data dictionary, index strategies, foreign key cascade behaviors, and production SQL DDL migrations for documenting relational database schemas.
Instructions
Generates an Entity Relationship Diagram (ERD.md) with valid Mermaid diagram, complete data dictionary, index strategies, foreign key cascade behaviors, and production SQL DDL migrations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | lite: core contract only, no diagrams, glossary, risk tables, or fixtures (about 25% fewer tokens). full (default): everything. | |
| entities | No | ||
| outputPath | No | File to write ERD.md to. Relative paths are resolved from the workspace root the editor reports, otherwise from the server's working directory, which may not be the user's project. Prefer the full path of the user's project folder. If the user has not said where the project is, ask before calling. Folders inside the starter-doc-mcp install are rejected. | |
| description | No | Relational data persistence schema | |
| projectName | Yes | ||
| databaseEngine | No | PostgreSQL | |
| templatePreset | No |