:::mermaid
flowchart TD
A["🔵 MCP Server<br/>postgres-mcp"] --> B{"Loại Tool?"}
B -->|"Schema & Objects"| C["Schema Tools"]
B -->|"SQL Execution"| D["Query Tools"]
B -->|"Performance"| E["Performance Tools"]
B -->|"Revenue Analysis"| F["Revenue Tools"]
C --> C1["list_schemas"]
C --> C2["list_objects"]
C --> C3["get_object_details"]
D --> D1["execute_sql"]
D --> D2["explain_query"]
E --> E1["get_top_queries"]
E --> E2["analyze_db_health"]
E --> E3["analyze_query_indexes"]
E --> E4["analyze_workload_indexes"]
F --> F1["query_revenue"]
F --> F2["analyze_trend"]
style A fill:#4CAF50,color:white
style B fill:#2196F3,color:white
style C fill:#9C27B0,color:white
style D fill:#FF9800,color:white
style E fill:#00BCD4,color:white
style F fill:#E91E63,color:white
style C1 fill:#CE93D8
style C2 fill:#CE93D8
style C3 fill:#CE93D8
style D1 fill:#FFCC80
style D2 fill:#FFCC80
style E1 fill:#80DEEA
style E2 fill:#80DEEA
style E3 fill:#80DEEA
style E4 fill:#80DEEA
style F1 fill:#F48FB1
style F2 fill:#F48FB1
:::