Skip to main content
Glama

Term Parents

term_parents
Read-onlyIdempotent

"What broader phenotype is [HP:N] under" / "parent term of [HPO ID]", direct parents of an HPO term in the ontology graph. Use to walk up to a more general phenotype class.

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:0001250"
    },
    "name": "term_parents"
  }
}

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:0001250"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Direct parent terms",
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the bar is lower. The description still adds the key behavioral fact that these are DIRECT parents, not the full ancestor closure — a distinction that materially changes results versus a transitive traversal.

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?

Two compact sentences, front-loaded with the natural-language phrasings an agent might match against, followed by the precise definition. No wasted wording, though the quoted query phrasings are slightly noisy.

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, so return values need not be explained, and the direct-vs-transitive distinction is covered. The remaining gap is edge-case behavior (root terms, invalid IDs), which is minor for a one-parameter read tool.

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 0% and the single 'id' parameter is undocumented in the schema, but the description compensates partially by showing the expected identifier form ('[HP:N]', '[HPO ID]'). It does not state whether the ID must be a leaf term, whether multiple IDs are accepted, or what happens for a root term.

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 names a specific verb+resource: 'direct parents of an HPO term in the ontology graph', and adds the intent 'walk up to a more general phenotype class'. It implicitly distinguishes direction from the children/descendants siblings, though it never names them.

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?

'Use to walk up to a more general phenotype class' gives a clear usage context, but there is no explicit when-not guidance and no routing to the sibling tools (term_children, term_descendants) that an agent would need to pick the right traversal direction.

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.