Find relationship between two relatives
find_relationshipUse this when the user asks how two people in their family are related (for example second cousin once removed, great-aunt, half-brother, mother-in-law, stepsister) and gives the family links. Pass the same people list as for the family tree and the two people. Computes the exact English kinship term both ways, the closest common ancestors and the generations to them. Does not guess missing links or research genealogy records; DNA matches and percentages are not covered.
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": {
"people": "<people>",
"person_a": "<person_a>",
"person_b": "<person_b>"
},
"name": "find_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| people | Yes | Everyone in the tree (1-200 people), each with an id, a name and links to parents/spouses by id. | |
| person_a | Yes | Id or name of the first person (the one asking), e.g. p7. | |
| person_b | Yes | Id or name of the relative to describe, e.g. p3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| reverse | Yes | ||
| person_a | Yes | ||
| person_b | Yes | ||
| warnings | Yes | ||
| explanation | Yes | ||
| relationship | Yes | ||
| common_ancestors | Yes | ||
| generations_from_a | Yes | ||
| generations_from_b | Yes |