Get Person Family Tree
ganjoor_get_person_family_treeTrace a person's full lineage across generations by retrieving the entire connected kinship component: ancestors, descendants, spouses, and siblings in one result.
Instructions
Get the full connected kinship component reachable from a person — ancestors, descendants, spouses, and siblings.
This returns the whole clan cluster, not just one hop, which makes it the right tool for tracing a figure's lineage across generations.
Args:
person_id (number): Numeric person id
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON: { person_id, root_id, person_count, people: [{ id, name, birth_year_hijri, death_year_hijri, family_tree_caption }], relation_count, relations: [{ person1_id, person1_name, person2_id, person2_name, relation_label }] }
Examples:
"Show me this figure's lineage" -> person_id=
Notes:
Components can be large for well-documented dynasties (the Kayumars tree has ~56 people).
Data quality varies: some edges are machine-generated and may be speculative — check the machine_generated flag per person.
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": {
"person_id": "<person_id>"
},
"name": "ganjoor_get_person_family_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_id | Yes | Numeric person id to start the traversal from. | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data. | markdown |