get_fk_graph
Build a foreign-key relationship graph for a schema or table, returning child-to-parent edges and a Mermaid diagram.
Instructions
Build a foreign-key relationship graph for a schema or a single table. Returns directed edges (child→parent) and a Mermaid diagram string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional table name to scope the graph. Leave blank for the entire schema. | |
| schema | No | Schema (owner) to inspect. Optional — defaults to the server's current schema; omit rather than guess. |