get_node_ancestry
Retrieve the complete hierarchical path from root to a specific node in a planning system to understand its position and relationships within the structure.
Instructions
Get the path from root to a specific node
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | Plan ID | |
| node_id | Yes | Node ID |
Implementation Reference
- src/tools.js:609-618 (handler)Handler function that destructures plan_id and node_id from arguments and makes an API GET request to retrieve the ancestry path for the specified node.if (name === "get_node_ancestry") { const { plan_id, node_id } = args; // Get node ancestry const response = await apiClient.axiosInstance.get( `/plans/${plan_id}/nodes/${node_id}/ancestry` ); return formatResponse(response.data); }
- src/tools.js:262-273 (registration)Tool registration including name, description, and input schema specification for the get_node_ancestry tool.{ name: "get_node_ancestry", description: "Get the path from root to a specific node", inputSchema: { type: "object", properties: { plan_id: { type: "string", description: "Plan ID" }, node_id: { type: "string", description: "Node ID" } }, required: ["plan_id", "node_id"] } },