create_plan
Create structured project plans with phases, tasks, and milestones for AI agents to manage hierarchical planning workflows.
Instructions
Create a new plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Plan title | |
| description | No | Plan description | |
| status | No | Plan status | draft |
Implementation Reference
- src/tools.js:122-138 (registration)Registers the 'create_plan' MCP tool including its input schema, description, and parameters in the tools list returned by listTools.name: "create_plan", description: "Create a new plan", inputSchema: { type: "object", properties: { title: { type: "string", description: "Plan title" }, description: { type: "string", description: "Plan description" }, status: { type: "string", description: "Plan status", enum: ["draft", "active", "completed", "archived"], default: "draft" } }, required: ["title"] } },
- src/tools.js:527-530 (handler)The execution handler for the 'create_plan' tool within the CallToolRequestSchema handler. Forwards arguments to the API client and formats the response for MCP compatibility.if (name === "create_plan") { const result = await apiClient.plans.createPlan(args); return formatResponse(result); }
- src/api-client.js:80-83 (helper)API client helper method that performs the HTTP POST request to the backend API endpoint '/plans' to create a new plan.createPlan: async (planData) => { const response = await apiClient.post('/plans', planData); return response.data; },
- src/tools.js:124-137 (schema)Input schema definition for the 'create_plan' tool, specifying parameters, types, descriptions, and validation rules (required fields, enums).inputSchema: { type: "object", properties: { title: { type: "string", description: "Plan title" }, description: { type: "string", description: "Plan description" }, status: { type: "string", description: "Plan status", enum: ["draft", "active", "completed", "archived"], default: "draft" } }, required: ["title"] }