get_foreign_keys
Retrieve foreign key relationships for a table, showing inbound (references from other tables), outbound (references to other tables), or both. Specify database and table.
Instructions
Return foreign key relationships for a table. database: key from list_databases. table: table name from list_objects — automatically uppercased. direction: 'out' = FK constraints this table declares (what other tables it references), 'in' = FK constraints on other tables that point to this table (what references it), 'all' (default) = both directions. Returns [{direction, from_table, from_column, to_table, to_column, on_update, on_delete}].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| table | Yes | ||
| direction | No | all |