whodb_erd
Load graph metadata to view table relationships, primary/foreign keys, and schema structure for database design and query planning.
Instructions
Load backend graph metadata for a schema or database.
Best for: Understanding how tables relate before writing joins; inspecting primary/foreign key relationships programmatically. Not recommended for: Query execution. Common mistakes: Expecting row data instead of metadata.
Usage Example:
{
"name": "whodb_erd",
"arguments": {
"connection": "mydb",
"schema": "public"
}
}Returns: Storage units with columns plus normalized relationship edges sourced from backend graph metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Connection name (optional if only one exists) | |
| schema | No | Schema or database name override |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | ||
| storage_units | Yes | ||
| relationships | Yes | ||
| error | No | ||
| request_id | No |