Skip to main content
Glama
ianderso
by ianderso

get_relationship

Read-only

Find how two people in a Gramps family tree are related, returning the relationship and generation distance to their common ancestor. Reports when no common ancestor is found.

Instructions

Work out how two people in the tree are related.

Returns the relationship in words plus the generation distance from each person to their common ancestor. related is false when no common ancestor was found within the search depth — which is a finding in itself if you expected one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoGenerations to search. Server default if omitted.
person1YesHandle or gramps_id of the first person.
person2YesHandle or gramps_id of the second person.
all_pathsNoReport every relationship path, not just the closest. Use this when two people may be related more than one way.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral detail beyond that: the return shape (relationship in words plus generation distance to common ancestor) and the failure mode (`related` is false when no common ancestor is found within search depth). It stops short of 5 since it says nothing about performance, limits, or behavior on unknown/invalid person identifiers.

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?

Three short sentences, front-loaded with the core action, then the return shape, then the failure-mode caveat. Each sentence carries information; only the parenthetical aside is slightly decorative.

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, the description correctly fills the gap by explaining what is returned (words + generation distance) and the `related` flag semantics. All four parameters are schema-documented. Minor gaps remain around error behavior for bad handles and the server default depth.

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 description coverage is 100%, so the baseline is 3. The description adds only marginal meaning — the notion of a depth-limited search and that the default reports the closest relationship (implying all_paths=false) — but contributes no syntax or format detail beyond the schema.

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

Purpose4/5

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

The description gives a specific verb+resource ('work out how two people in the tree are related') that is inherently distinct from directional siblings like get_ancestors and get_descendants. It does not explicitly name those siblings, so an agent must infer the distinction, keeping it short of a 5.

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

Usage Guidelines3/5

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

Usage is implied by the purpose ('how two people are related'), and it signals that a false `related` result is meaningful 'if you expected one,' which is interpretive guidance. However, there is no explicit when-to-use/when-not or named alternative versus get_ancestors/get_descendants.

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