Skip to main content
Glama
jaiamin
by jaiamin

Get Descendants

get_descendants
Read-only

List a person's descendants by generation—children, grandchildren, and beyond—from a family tree using tree and person IDs.

Instructions

List a person's descendants by generation (1 = children, 2 = grandchildren, ...).

Input Schema

NameRequiredDescriptionDefault
treeYesStable tree UUID (preferred) or exact name, as shown by list_trees.
person_idYesPerson UUID, as returned by add_people or find_people.
generationsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds the generation-numbering convention, but it does not explain what generations=null means, whether traversal is exhaustive by default, or any depth/result limits.

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

Conciseness5/5

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

The description is a single efficient sentence with the key resource and generation convention front-loaded. There is no filler, and every part adds useful meaning.

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?

An output schema exists and annotations cover the read-only safety profile, so return values and safety do not need description coverage. The main remaining gap is the optional generations parameter's default behavior, which is small but relevant for correct invocation.

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?

The schema describes tree and person_id, but generations has no schema description. The description partially compensates by defining 1=children, 2=grandchildren, etc., but does not clarify null/default behavior or maximum depth.

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 states a specific verb and resource: list a person's descendants, and it clarifies the generation numbering convention. It distinguishes itself from the sibling get_ancestors by direction, though it does not explicitly name or route away from that sibling.

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 resource: use this when you need a person's descendants. However, there is no explicit guidance on when to prefer it over get_ancestors, get_relationship, or get_person, and no exclusions or prerequisites are stated.

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