Skip to main content
Glama
PeWu

WikiTree MCP server

by PeWu

get_ancestors

Retrieve ancestor information from WikiTree by specifying a person ID and generation depth to explore family lineage and relationships.

Instructions

Retrieve ancestors for a given person ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesWikiTree ID
depthNoNumber of generations to retrieve
bioFormatNo
fieldsNo
resolveRedirectNo

Implementation Reference

  • The handler for the "get_ancestors" tool, which extracts arguments from the request and calls the wikitree library's getAncestors function.
    case "get_ancestors": {
      const { key, depth, bioFormat, fields, resolveRedirect } = args as any;
      const ancestors = await wikitree.getAncestors(key, { depth, bioFormat, fields, resolveRedirect }, options);
      return { content: [{ type: "text", text: JSON.stringify(ancestors, null, 2) }] };
    }
  • Registration and input schema definition for the "get_ancestors" tool.
      name: "get_ancestors",
      description: "Retrieve ancestors for a given person ID",
      inputSchema: {
        type: "object",
        properties: {
          key: { type: "string", description: "WikiTree ID" },
          depth: { type: "number", description: "Number of generations to retrieve" },
          bioFormat: { type: "string", enum: ["wiki", "html", "both"] },
          fields: { type: "array", items: { type: "string" } },
          resolveRedirect: { type: "boolean" },
        },
        required: ["key"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PeWu/wikitree-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server