term_ancestors

Pack: ebi-ols · Endpoint: https://gateway.pipeworx.io/ebi-ols/mcp

Transitive ancestors of a term.

Parameters

NameTypeRequiredDescription
ontologystringyes
iristringyes

Example call

Arguments

{
  "ontology": "efo",
  "iri": "http://www.ebi.ac.uk/efo/EFO_0000408"
}

curl

curl -X POST https://gateway.pipeworx.io/ebi-ols/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"term_ancestors","arguments":{"ontology":"efo","iri":"http://www.ebi.ac.uk/efo/EFO_0000408"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('term_ancestors', {
  "ontology": "efo",
  "iri": "http://www.ebi.ac.uk/efo/EFO_0000408"
});

Response shape

FieldTypeDescription
_embeddedobject
Full JSON Schema
{
  "type": "object",
  "description": "Transitive closure of ancestor terms",
  "properties": {
    "_embedded": {
      "type": "object",
      "properties": {
        "ancestors": {
          "type": "array",
          "description": "Array of ancestor terms in hierarchy",
          "items": {
            "type": "object",
            "description": "Ancestor term with IRI and label"
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "ebi-ols": {
      "url": "https://gateway.pipeworx.io/ebi-ols/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026