---
title: ToolRouter — Agent Use Case Guide
description: Step-by-step guide for completing a task with a specific AI agent using ToolRouter.
url: https://toolrouter.com/tools/diagram-generator/use-cases/create-entity-relationship-diagrams/openclaw
---
# How to Create ER Diagrams with OpenClaw

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.

## Setup

openclaw mcp add toolrouter -- npx -y toolrouter-mcp

## Steps

1. Connect ToolRouter: openclaw mcp add toolrouter -- npx -y toolrouter-mcp
2. Ask OpenClaw: "Create an ER diagram for my database" and describe the tables and relationships
3. OpenClaw generates the diagram with proper notation
4. Download and add to your project documentation

## Example Prompt

```
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
