Get Person Relations
ganjoor_get_person_relationsRetrieves a person's kinship and affiliation relations—parents, siblings, spouses, teachers, and contemporaries—with optional relation-type filtering.
Instructions
Get a person's kinship and affiliation edges — parents, siblings, spouses, teachers, and contemporaries.
Args:
person_id (number): Numeric person id
relation_type (string): Optional filter — only relations of this kind, e.g. 'father', 'son', 'spouse', 'student', 'teacher'
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For JSON: { person_id, relation_count, relations: [{ id, from_person_id, from_person_name, to_person_id, to_person_name, relation_kind, relation_name }] }
Examples:
"Who was this person's teacher?" -> person_id=, relation_type='teacher'
Notes:
Edges are stored undirected with a kind; the same edge appears once.
Use ganjoor_get_person_family_tree for the whole connected component.
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_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_id | Yes | Numeric person id. | |
| relation_type | No | Optional filter on the relation kind, e.g. 'father', 'spouse', 'teacher'. | |
| response_format | No | Output format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data. | markdown |