Skip to main content
Glama

EBI OLS Biomedical Ontologies MCP

Get EBI OLS4 term hierarchy

get_term_hierarchy
Read-onlyIdempotent

Retrieve parents, children, ancestors, or descendants for an ontology term in EBI OLS4.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ontology_id": "<ontology_id>",
      "short_form": "<short_form>"
    },
    "name": "get_term_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax related terms to return (default 10).
relationNoHierarchy relation to traverse (default "parents").
short_formYesTerm short form or OBO ID (e.g. "MONDO_0005015", "GO_0008150").
ontology_idYesOntology ID (e.g. "mondo", "go", "hp").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior. The description adds that the operation traverses ontology hierarchy relations, but it does not mention limits, truncation, missing terms, or how results are shaped beyond the relation enum already present in the schema.

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 front-loaded sentence with no filler. Every word contributes to identifying the operation and its relation scope.

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 simple read-only ontology traversal tool with rich annotations and fully described parameters, the description is largely sufficient. It lacks routing guidance relative to sibling tools and any note about result limits or output structure, but those gaps are modest given the available annotations and schema.

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 all four parameters are already documented. The description only restates the relation options (parents, children, ancestors, descendants), adding no syntax, format, or usage detail beyond the schema baseline.

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: retrieve parents, children, ancestors, or descendants for an ontology term in EBI OLS4. This clearly distinguishes hierarchy traversal from term lookup or search, though it does not explicitly name the sibling tools it differs from.

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: use this when you need the hierarchy around an ontology term. The description does not state when to prefer get_ontology_term or search_ontology_terms, nor does it give exclusions or prerequisites such as needing a known short_form.

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.