get_ancestors
Build a GEDCOM individual's direct ancestry tree by recursively fetching father and mother lines up to a chosen number of generations.
Instructions
Pedigree tree (father/mother recursively) for an individual, up to N generations.
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": {
"id": "<id>"
},
"name": "get_ancestors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id such as @I12@ | |
| file | No | GEDCOM file name (with or without .ged). Optional when only one file exists. | |
| generations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| father | No | ||
| mother | No | ||
| person | Yes | ||
| truncated | No | True if more ancestors exist beyond the generation limit | |
| generation | Yes |