get_ancestors
Retrieve the complete hierarchical path from any entity to the root in Threads MCP Server. This tool helps users trace lineage and understand organizational structure by providing all ancestors of a specified entity ID.
Instructions
Get all ancestors of an entity (path to root)
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": {
"entityId": "<entityId>"
},
"name": "get_ancestors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityId | Yes | Entity ID |