Skip to main content
Glama
ianderso
by ianderso

get_facts

Read-only

Find record-holders across a Gramps tree—oldest at death, youngest parent, most children—to spot implausible data errors. Excludes living or private people unless include_private is set.

Instructions

Read the tree's record-holders: oldest at death, youngest parent, most children.

Superlatives across a set of people, not statistics about one person. An implausible holder — a father at eight, a death at 130 — is usually a data error, which makes this a quick plausibility check. Living and private people are excluded unless include_private is set. Slow: the server computes it all per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rankNoRecord-holders to return per statistic.
personNoHandle or gramps_id a built-in person_filter is anchored on.
person_filterNoNarrow the set: 'Ancestors', 'Descendants', 'DescendantFamilies' or 'CommonAncestor' of person, or a saved custom person filter's name. Omit for the whole tree.
include_privateNoShow living people and private records in full. Only when the user asks for them; they are withheld by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses real behavioral traits: living and private people are withheld unless include_private is set, and the call is slow because the server computes everything per call. These are genuine operational facts an agent needs and are not captured by annotations.

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?

Front-loaded with the core output definition, then one line each for scope, plausibility use, privacy behavior, and performance. No filler; every 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?

For a read-only tool with no output schema, it conveys the kind of results returned, the exclusion rule, and the performance cost. It lacks a full enumeration of all statistics produced and pagination/ranking return detail, but is otherwise sufficient to call correctly.

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 rank, person, person_filter, and include_private are already documented in the schema. The description restates the include_private exclusion behavior but adds no syntax or format meaning beyond what the schema provides, so the baseline 3 applies.

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 specific verb (read) and resource (the tree's record-holders) and enumerates concrete outputs — oldest at death, youngest parent, most children. The clause 'Superlatives across a set of people, not statistics about one person' crisply distinguishes it from single-person stat tools like db_stats or get_person.

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 when-to-use scenario: an implausible holder signals a data error, making this a quick plausibility check. It does not name specific sibling alternatives (e.g. verify_tree, db_stats) or state when not to use it, so it stops short of full routing guidance.

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