peaka_get_relations
Retrieve foreign key relationships between tables in a Peaka project to construct accurate SQL JOINs without guessing.
Instructions
Get table relationships (foreign keys) for a catalog in the Peaka project. Useful for understanding how tables connect when constructing JOINs — without this, JOIN conditions have to be guessed from column-name similarity. The response is an open-ended object map keyed by relation identifier.
If you do not already know the projectId for the current task, call peaka_list_projects first and ask the user which project to use. Remember the chosen projectId for subsequent calls in this conversation.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| catalogId | Yes | The catalog ID whose relationships should be returned. | |
| projectId | Yes | The Peaka project ID to run against. |