Find shortest join path between Terms
find_join_pathComputes the shortest accepted relationship chain between two terms or tables and returns ON conditions, a FROM/JOIN clause, fan-out warnings, and alternative join roles for pairwise join checks.
Instructions
Compute the shortest chain of accepted relationships between two Terms or tables, returning ON conditions, a ready FROM/JOIN clause, fan-out warnings, shared-parent caveats, and alternative join roles (e.g. billing vs delivery city). Use when checking one specific pairwise join; use get_query_context to assemble columns, attributes, and joins for a full multi-Term query, and list_relationships to review unapproved joins. Returns found=false when no accepted path connects them.
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": {
"source": "<source>",
"target": "<target>"
},
"name": "find_join_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Starting Term name or physical table name. | |
| target | Yes | Destination Term name or physical table name. | |
| datasource | No | Datasource name. Optional when only one datasource is registered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||