Skip to main content
Glama
TAgents

Planning System MCP Server

by TAgents

delete_plan

Remove a specific plan from the Planning System MCP Server by providing its plan ID. This tool helps manage project planning data by eliminating outdated or unnecessary plans.

Instructions

Delete a plan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idYesPlan ID to delete

Implementation Reference

  • The primary MCP tool handler for 'delete_plan'. Extracts the plan_id from input arguments, delegates to the apiClient's deletePlan method, and returns a formatted success response.
    if (name === "delete_plan") {
      const { plan_id } = args;
      await apiClient.plans.deletePlan(plan_id);
      return formatResponse({
        success: true,
        message: `Plan ${plan_id} deleted successfully`
      });
    }
  • src/tools.js:157-167 (registration)
    Registration of the 'delete_plan' tool in the MCP server's ListToolsRequestHandler, including name, description, and input schema.
    {
      name: "delete_plan",
      description: "Delete a plan",
      inputSchema: {
        type: "object",
        properties: {
          plan_id: { type: "string", description: "Plan ID to delete" }
        },
        required: ["plan_id"]
      }
    },
  • Input schema validation for the 'delete_plan' tool, requiring a 'plan_id' string.
    inputSchema: {
      type: "object",
      properties: {
        plan_id: { type: "string", description: "Plan ID to delete" }
      },
      required: ["plan_id"]
    }
  • API client helper function apiClient.plans.deletePlan that performs the actual HTTP DELETE request to the /plans/{planId} endpoint.
    deletePlan: async (planId) => {
      await apiClient.delete(`/plans/${planId}`);
    }

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