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
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | Plan ID to delete |
Implementation Reference
- src/tools.js:538-545 (handler)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"] } },
- src/tools.js:160-166 (schema)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"] }
- src/api-client.js:101-103 (helper)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}`); }