update_plan
Modify existing plans by updating titles, descriptions, or statuses to reflect project changes and maintain accurate planning documentation.
Instructions
Update an existing plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | Plan ID | |
| title | No | New plan title | |
| description | No | New plan description | |
| status | No | New plan status |
Implementation Reference
- src/tools.js:532-535 (handler)Executes the 'update_plan' tool by extracting plan_id and planData from input arguments, calling the API client's updatePlan method, and returning a formatted response.if (name === "update_plan") { const { plan_id, ...planData } = args; const result = await apiClient.plans.updatePlan(plan_id, planData); return formatResponse(result);
- src/tools.js:139-156 (schema)Tool specification including name, description, and input schema definition for the 'update_plan' tool, registered in the list of tools.{ name: "update_plan", description: "Update an existing plan", inputSchema: { type: "object", properties: { plan_id: { type: "string", description: "Plan ID" }, title: { type: "string", description: "New plan title" }, description: { type: "string", description: "New plan description" }, status: { type: "string", description: "New plan status", enum: ["draft", "active", "completed", "archived"] } }, required: ["plan_id"] } },
- src/api-client.js:91-94 (helper)API client helper function that sends a PUT request to `/plans/{planId}` to update the plan data, called by the tool handler.updatePlan: async (planId, planData) => { const response = await apiClient.put(`/plans/${planId}`, planData); return response.data; },