Skip to main content
Glama

Term Descendants

term_descendants
Read-onlyIdempotent

"All phenotypes under [HP:N]" / "full subtree of [HPO term]", transitive descendants (children, grandchildren, ...) of an HPO term. Use for exhaustive coverage (e.g. "every cardiac phenotype" via descendants of HP:0001626).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "HP:0000118"
    },
    "name": "term_descendants"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "HP:0000118"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Full descendant subtree",
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, open-world, non-destructive behavior. The description adds useful traversal semantics beyond annotations: the result is the full transitive subtree, not just immediate children, and it is intended for exhaustive coverage. It does not discuss pagination or result size, but the output schema carries return-shape details.

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?

The definition is short and front-loaded with the core scope, then an example. The initial two quoted phrasings ('All phenotypes under [HP:N]' and 'full subtree of [HPO term]') are slightly redundant, but they serve as useful synonyms rather than wasted space.

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 one-parameter read tool with rich annotations and an output schema, the description covers purpose, usage, and ID format well. The main minor gap is not explicitly saying whether the input term itself is included in the result or only its descendants, though 'under' and 'descendants' imply exclusion.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must clarify the lone 'id' parameter. It does this by showing the HPO identifier format as [HP:N] and giving a concrete example (HP:0001626), making clear that the parameter is an HPO term ID. It could be more explicit that the ID must be an HPO term rather than another identifier type, but the meaning is strongly implied.

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?

The description states a precise retrieval scope: all phenotypes under an HPO term, specifically transitive descendants (children, grandchildren, etc.). The phrase 'transitive descendants' clearly distinguishes this from a direct-children tool such as hpo_api_term_children, even without naming the sibling explicitly.

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?

It gives clear when-to-use guidance: 'Use for exhaustive coverage' and provides a concrete example of finding every cardiac phenotype via HP:0001626. It does not explicitly name when not to use it or point to direct-children alternatives, which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.