Пути связей разделов
find_relation_pathsFind relation paths between two sections to see which fields and intermediate sections link them before writing a JOIN; optionally restrict allowed intermediate sections.
Instructions
Когда вызывать: нужно понять, через какие поля и разделы связаны два раздела (например, people и products), прежде чем писать JOIN. Возвращает до 10 кратчайших маршрутов (до 5 шагов): каждый шаг — from_section, field, to_section, direction (out/in); данные сущностей не возвращаются, JOIN не выполняется. via_sections ограничивает промежуточные разделы. Дальше: find_jsonata_examples (группа relations) или seaf_jsonata_query.
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": {
"start_section": "<start_section>",
"end_section": "<end_section>"
},
"name": "find_relation_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_section | Yes | Конечный раздел, например seaf.company.ba.products | |
| via_sections | No | Разрешённые промежуточные разделы (опционально) | |
| start_section | Yes | Начальный раздел, например seaf.company.people |