Geneanet: Get Family Tree Around a Person
geneanet_get_treeRetrieve a person's ancestors, descendants, and siblings in one call, with relationships resolved and names with life years included; fetch person details separately for places and sources.
Instructions
Ancestors and descendants of one person in a single call, with each relationship already resolved: ancestors carry generation (1 = parents) and fatherIndex/motherIndex; descendants carry relation (child or spouse) with parentIndexes and/or spouseOfIndexes (a cousin marriage has both); siblings are listed too. Names and life years only; use geneanet_get_person on an index for places, sources and notes. One request whatever the depth, but 10 generations can be over a thousand people, so start small.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "geneanet_get_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Surname key, lower case without accents, as in a profile URL's `n=` (e.g. "louvignes"). Use with `p` instead of `index`, typically straight from a geneanet_search_records hit. | |
| p | No | First-names key, lower case without accents, as in a profile URL's `p=` (e.g. "marie germaine"; spaces, not +). | |
| oc | No | Occurrence number telling apart homonyms in one tree, the URL's `oc=`. Defaults to 0, which is right unless the URL has an oc. | |
| tree | No | The family tree to read: its owner's Geneanet username, the first path segment of a tree URL (gw.geneanet.org/maudrenel1 → "maudrenel1"). Every geneanet_search_records family_tree hit carries it as `tree`. Defaults to GENEANET_TREE when that is set. | |
| index | No | The person's internal index in THIS tree, the `index` that every other geneanet_* tree tool returns (e.g. 27). Indexes are per tree: the same ancestor has a different index in every tree. | |
| ancestors | No | Generations of ancestors beyond the person (0-10): 1 = parents, 3 = up to great-grandparents. Defaults to 3. | |
| descendants | No | Generations of descendants (0-5): 1 = spouses and children. Defaults to 1. |