Skip to main content
Glama
PeWu

WikiTree MCP server

by PeWu

get_relatives

Retrieve family relationships for WikiTree profiles to explore ancestors, descendants, spouses, and siblings using the WikiTree MCP server.

Instructions

Retrieve relatives for a given person ID or list of IDs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keysYesWikiTree IDs
getParentsNo
getChildrenNo
getSpousesNo
getSiblingsNo
bioFormatNo
fieldsNo

Implementation Reference

  • The handler logic for the "get_relatives" tool, which calls `wikitree.getRelatives` with the provided arguments.
    case "get_relatives": {
      const { keys, getParents, getChildren, getSpouses, getSiblings, bioFormat, fields } = args as any;
      const relatives = await wikitree.getRelatives(keys, { getParents, getChildren, getSpouses, getSiblings, bioFormat, fields }, options);
      return { content: [{ type: "text", text: JSON.stringify(relatives, null, 2) }] };
    }
  • The registration and schema definition for the "get_relatives" tool.
      name: "get_relatives",
      description: "Retrieve relatives for a given person ID or list of IDs",
      inputSchema: {
        type: "object",
        properties: {
          keys: { type: "array", items: { type: "string" }, description: "WikiTree IDs" },
          getParents: { type: "boolean" },
          getChildren: { type: "boolean" },
          getSpouses: { type: "boolean" },
          getSiblings: { type: "boolean" },
          bioFormat: { type: "string", enum: ["wiki", "html", "both"] },
          fields: { type: "array", items: { type: "string" } },
        },
        required: ["keys"],
      },
    },

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