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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_fk_graph"
}
}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. |