Skip to main content
Glama

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
NameRequiredDescriptionDefault
plan_idYesPlan ID
titleNoNew plan title
descriptionNoNew plan description
statusNoNew plan status

Implementation Reference

  • 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);
  • 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"] } },
  • 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; },

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