Skip to main content
Glama

genealogy-mcp-server

Find Common WikiTree Ancestors

genealogy_find_common_ancestors
Read-onlyIdempotent

Compare the visible ancestors of two WikiTree profiles within a generation limit. Returns shared ancestors and all ties for the shortest combined distance, including a starting profile when it is an ancestor of the other. Reports same_profile when both keys resolve to one profile. Use genealogy_get_relatives to inspect either profile’s pedigree and gaps.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "genealogy_find_common_ancestors"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesFirst WikiTree numeric ID, page name, or profile link from genealogy_search_profiles.
bYesSecond WikiTree numeric ID, page name, or profile link from genealogy_search_profiles.
generationsNoMaximum generations of ancestors per profile.

Output Schema

NameRequiredDescriptionDefault
aNoFirst starting profile.
bNoSecond starting profile.
errorNoPresent when the call failed. Absent on success.
foundNoFalse when a starting profile cannot be shown.
commonNoShared visible ancestors, ordered by combined generation distance.
sourceNoThe WikiTree shared tree.
nearestNoAll ancestors tied for the shortest combined generation distance.
guidanceNoHow to find a visible starting profile or inspect gaps.
searched_aNoVisible ancestors searched from a.
searched_bNoVisible ancestors searched from b.
generationsNoMaximum generations searched for each profile.
open_ends_aNoUnavailable parent slots encountered from a.
open_ends_bNoUnavailable parent slots encountered from b.
same_profileNoTrue when both keys resolve to the same visible profile.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the read-only, open-world, idempotent profile, and the description adds genuine behavioral detail beyond that: only 'visible' ancestors are compared, all ties at the shortest combined distance are returned, a starting profile is included when it is an ancestor of the other, and the same_profile case is reported. It does not discuss privacy gating depth or performance limits, so it stops short of 5.

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?

Four compact sentences, front-loaded with what is compared and followed by return semantics, with no filler. Sentence density is high but each sentence carries distinct information.

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?

Output schema exists, so return fields needn't be enumerated, and the description still covers key result semantics (shared ancestors, ties, same_profile). Edge cases relevant to a pairwise ancestor comparison are addressed; only minor depth/privacy detail is absent.

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 each parameter's type and meaning is already documented, giving a baseline of 3. The description's 'within a generation limit' adds a little context for the generations cap but no syntax or trade-off guidance beyond the schema.

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?

States a precise operation ('compare the visible ancestors of two WikiTree profiles') with scope ('within a generation limit'), so the verb and resource are unambiguous. It also differentiates itself from the sibling by naming genealogy_get_relatives for pedigree inspection.

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?

Gives a clear routing hint: use genealogy_get_relatives to inspect either profile's pedigree and gaps, which implies this tool is for pairwise comparison rather than single-profile traversal. It lacks an explicit 'do not use when' clause, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.