Skip to main content
Glama
TAgents

Planning System MCP Server

by TAgents

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
NameRequiredDescriptionDefault
plan_idYesPlan ID
node_idYesNode ID

Implementation Reference

  • 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"]
      }
    },

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