Skip to main content
Glama
TAgents

Planning System MCP Server

by TAgents

get_node_context

Retrieve comprehensive context for planning nodes including children, logs, and artifacts to support structured project planning and decision-making.

Instructions

Get comprehensive context for a node including children, logs, and artifacts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idYesPlan ID
node_idYesNode ID

Implementation Reference

  • The handler function for the 'get_node_context' MCP tool. It extracts plan_id and node_id from arguments and makes an API call to retrieve the node's comprehensive context (including children, logs, and artifacts) from the backend endpoint `/plans/{plan_id}/nodes/{node_id}/context`, then formats the response.
    if (name === "get_node_context") {
      const { plan_id, node_id } = args;
      
      // Get node with context
      const response = await apiClient.axiosInstance.get(
        `/plans/${plan_id}/nodes/${node_id}/context`
      );
      
      return formatResponse(response.data);
    }
  • src/tools.js:250-261 (registration)
    Registration of the 'get_node_context' tool in the ListToolsRequestHandler response. Includes the tool name, description, and input schema definition.
    {
      name: "get_node_context",
      description: "Get comprehensive context for a node including children, logs, and artifacts",
      inputSchema: {
        type: "object",
        properties: {
          plan_id: { type: "string", description: "Plan ID" },
          node_id: { type: "string", description: "Node ID" }
        },
        required: ["plan_id", "node_id"]
      }
    },
  • Input schema for the 'get_node_context' tool, defining required plan_id and node_id parameters.
    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