Skip to main content
Glama
Ganjoor MCP Server

Ganjoor MCP Server

Official
by ganjoor

Get Person Family Tree

ganjoor_get_person_family_tree
Read-onlyIdempotent

Trace 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

NameRequiredDescriptionDefault
person_idYesNumeric person id to start the traversal from.
response_formatNoOutput format: 'markdown' for human-readable text (default) or 'json' for machine-readable structured data.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description's real contribution is operational: component sizes can be large (~56 people for the Kayumars tree) and some edges are machine-generated and speculative. That caveat is exactly the kind of context an agent needs to interpret results cautiously; the only gap is that the referenced per-person `machine_generated` flag does not appear in the documented return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is well structured and front-loaded: a one-line purpose, an elaboration, then Args/Returns/Examples/Notes. Some text is redundant with the schema (the Args block), but the Returns shape and Notes are substantive enough to justify the length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema present, the description usefully spells out the JSON payload (people, relations, counts, caption) and adds size and data-quality caveats plus an example. The one inconsistency — promising a `machine_generated` flag that the listed return shape omits — keeps it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents both parameters including the enum and default for `response_format`. The Args section mostly restates the schema in slightly different words ("Numeric person id") without adding traversal semantics such as whether a non-existent or disconnected id yields an empty component. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Get the full connected kinship component reachable from a person") and enumerates the covered relation types (ancestors, descendants, spouses, siblings). The clause "the whole clan cluster, not just one hop" implicitly distinguishes it from the narrower relations-oriented sibling, so an agent can pick correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a clear use case — "the right tool for tracing a figure's lineage across generations" — and reinforces it with an example query ("Show me this figure's lineage"). It stops short of naming the one-hop alternative or stating when not to use it (e.g., for a flat list of direct relations), so it earns a 4 rather than a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.