Skip to main content
Glama
TAgents

Planning System MCP Server

by TAgents

get_logs

Retrieve log entries for specific plan nodes to track progress, reasoning, decisions, challenges, and comments during project planning.

Instructions

Get log entries for a node

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idYesPlan ID
node_idYesNode ID
log_typeNoFilter by log type
limitNoMaximum number of logs to return

Implementation Reference

  • Executes the get_logs tool: parses input arguments, retrieves logs using apiClient, applies optional log_type filter and limit, formats and returns the response.
    if (name === "get_logs") {
      const { plan_id, node_id, log_type, limit = 50 } = args;
      
      let logs = await apiClient.logs.getLogs(plan_id, node_id);
      
      // Apply filters
      if (log_type) {
        logs = logs.filter(log => log.log_type === log_type);
      }
      
      // Apply limit
      logs = logs.slice(0, limit);
      
      return formatResponse(logs);
    }
  • Input schema defining parameters for the get_logs tool: plan_id and node_id (required), optional log_type filter and limit.
    inputSchema: {
      type: "object",
      properties: {
        plan_id: { type: "string", description: "Plan ID" },
        node_id: { type: "string", description: "Node ID" },
        log_type: { 
          type: "string", 
          description: "Filter by log type",
          enum: ["progress", "reasoning", "challenge", "decision", "comment"]
        },
        limit: {
          type: "integer",
          description: "Maximum number of logs to return",
          default: 50
        }
      },
      required: ["plan_id", "node_id"]
    }
  • src/tools.js:300-321 (registration)
    Tool registration in the ListTools response array, including name, description, and schema.
    {
      name: "get_logs",
      description: "Get log entries for a node",
      inputSchema: {
        type: "object",
        properties: {
          plan_id: { type: "string", description: "Plan ID" },
          node_id: { type: "string", description: "Node ID" },
          log_type: { 
            type: "string", 
            description: "Filter by log type",
            enum: ["progress", "reasoning", "challenge", "decision", "comment"]
          },
          limit: {
            type: "integer",
            description: "Maximum number of logs to return",
            default: 50
          }
        },
        required: ["plan_id", "node_id"]
      }
    },
  • Helper function in apiClient.logs that performs the HTTP GET request to retrieve logs from the backend API.
    getLogs: async (planId, nodeId) => {
      const response = await apiClient.get(`/plans/${planId}/nodes/${nodeId}/logs`);
      return 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