schema_get_relations
Retrieve foreign key relationships for a table. Specify the table name and optionally the schema to see its connections.
Instructions
Get foreign key relationships for a table
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"table_name": "<table_name>"
},
"name": "schema_get_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema name (default: public) | public |
| table_name | Yes | Name of the table |