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.
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_relationships"
}
}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. |