How to Create ER Diagrams with OpenClaw

ER diagram generation with OpenClaw and ToolRouter. Visualize database schemas instantly.

Tool
Diagram Generator icon
Diagram Generator

OpenClaw 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-mcp
2Call tools directly from OpenClaw
toolrouter-mcp call web-search search --query "AI tools"
toolrouter-mcp tools

Steps

Once connected (see setup above), use the Diagram Generator tool:

  1. Ask OpenClaw: "Create an ER diagram for my database" and describe the tables and relationships
  2. OpenClaw generates the diagram with proper notation
  3. 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