Skip to main content
Glama
TAgents

Planning System MCP Server

by TAgents

update_node

Modify properties of a planning node including status, description, due date, and acceptance criteria to reflect project changes.

Instructions

Update a node's properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plan_idYesPlan ID
node_idYesNode ID
titleNoNew node title
descriptionNoNew node description
statusNoNew node status
contextNoNew context
agent_instructionsNoNew agent instructions
acceptance_criteriaNoNew acceptance criteria
due_dateNoNew due date (ISO format)
metadataNoNew metadata

Implementation Reference

  • The main handler for the 'update_node' tool. It extracts plan_id, node_id, and other nodeData from arguments, calls the API client's updateNode method, and formats the response using formatResponse.
    if (name === "update_node") {
      const { plan_id, node_id, ...nodeData } = args;
      const result = await apiClient.nodes.updateNode(plan_id, node_id, nodeData);
      return formatResponse(result);
    }
  • The input schema and tool metadata (name, description, inputSchema) for 'update_node', which defines the expected parameters and serves as its registration in the tools list.
    {
      name: "update_node",
      description: "Update a node's properties",
      inputSchema: {
        type: "object",
        properties: {
          plan_id: { type: "string", description: "Plan ID" },
          node_id: { type: "string", description: "Node ID" },
          title: { type: "string", description: "New node title" },
          description: { type: "string", description: "New node description" },
          status: { 
            type: "string", 
            description: "New node status",
            enum: ["not_started", "in_progress", "completed", "blocked"]
          },
          context: { type: "string", description: "New context" },
          agent_instructions: { type: "string", description: "New agent instructions" },
          acceptance_criteria: { type: "string", description: "New acceptance criteria" },
          due_date: { type: "string", description: "New due date (ISO format)" },
          metadata: { type: "object", description: "New metadata" }
        },
        required: ["plan_id", "node_id"]
      }
    },
  • The API client helper method that performs the actual HTTP PUT request to update the node via the backend API.
    updateNode: async (planId, nodeId, nodeData) => {
      const response = await apiClient.put(`/plans/${planId}/nodes/${nodeId}`, nodeData);
      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