join_path
Find the shortest foreign-key path between two tables and get a ready-to-use JOIN chain, eliminating guesswork on unfamiliar schemas.
Instructions
Shortest foreign-key path between two tables, rendered as a ready-to-use JOIN chain (up to 3 equally short paths). Use this instead of guessing joins on unfamiliar schemas.
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": {
"from_table": "<from_table>",
"to_table": "<to_table>"
},
"name": "join_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | ||
| max_hops | No | ||
| to_table | Yes | ||
| from_table | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |