get_relationships
List foreign-key relationships with constraint details, cardinality hints, and optional schema/table filters to understand table connections.
Instructions
List foreign-key relationships with constraint names, referenced tables/columns, ON UPDATE/DELETE actions, and a cardinality hint (1:1 when the FK columns are uniquely constrained locally, otherwise many:1). Optionally filter by schema and/or table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Restrict to foreign keys defined on this table. | |
| schema | No | Restrict to this schema. If omitted, scans all non-system schemas. |