How to Create ER Diagrams with OpenClaw
ER diagram generation with OpenClaw and ToolRouter. Visualize database schemas instantly.
ToolDiagram GeneratorOpenClaw produces ER diagrams from structured schema definitions with standard notation for cardinality and relationships. Process multiple database schemas to generate complete data model documentation, ensuring consistent visual conventions across all diagrams in your documentation suite.
Connect ToolRouter to OpenClaw
1Install the CLI
npm install -g toolrouter-mcp2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp toolsSteps
Once connected (see setup above), use the Diagram Generator tool:
- Ask OpenClaw: "Create an ER diagram for my database" and describe the tables and relationships
- OpenClaw generates the diagram with proper notation
- Download and add to your project documentation
Example Prompt
Try this with OpenClaw using the Diagram Generator tool
Generate an ER diagram for a SaaS application: Organizations have many Teams, Teams have many Users, Users have many Projects, Projects have many Tasks with assignee references back to Users.
Tips
- Include junction tables for many-to-many relationships explicitly
- Regenerate the diagram after schema changes to keep documentation current