Skip to main content
Glama

get_node_ancestry

Retrieve the complete hierarchical path from root to a specific node in a plan to understand its position and dependencies within the project structure.

Instructions

Get the path from root to a specific node

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idYesPlan ID
node_idYesNode ID

Implementation Reference

  • src/tools.js:262-273 (registration)
    Registration of the 'get_node_ancestry' tool in the ListTools response, including name, description, and input schema.
    { 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"] } },
  • Handler implementation for the 'get_node_ancestry' tool. Extracts plan_id and node_id from arguments and calls the backend API endpoint to retrieve the ancestry path from root to 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); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TAgents/agent-planner-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server