Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

delete_cycle

Remove a specific cycle from a project in Plane MCP Server by providing the project and cycle IDs. Ideal for managing project workflows and maintaining system accuracy.

Instructions

Delete a cycle

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cycle_idYesThe uuid identifier of the cycle to delete
project_idYesThe uuid identifier of the project containing the cycle

Implementation Reference

  • The asynchronous handler function that sends a DELETE request to the Plane API endpoint to delete the cycle identified by project_id and cycle_id, then returns a success message.
    async ({ project_id, cycle_id }) => {
      await makePlaneRequest(
        "DELETE",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/cycles/${cycle_id}/`
      );
      return {
        content: [
          {
            type: "text",
            text: "Cycle deleted successfully",
          },
        ],
      };
    }
  • Input schema using Zod for validating project_id and cycle_id parameters required by the delete_cycle tool.
    {
      project_id: z.string().describe("The uuid identifier of the project containing the cycle"),
      cycle_id: z.string().describe("The uuid identifier of the cycle to delete"),
    },
  • Tool registration using server.tool() with name 'delete_cycle', description, input schema, and handler function.
    server.tool(
      "delete_cycle",
      "Delete a cycle",
      {
        project_id: z.string().describe("The uuid identifier of the project containing the cycle"),
        cycle_id: z.string().describe("The uuid identifier of the cycle to delete"),
      },
      async ({ project_id, cycle_id }) => {
        await makePlaneRequest(
          "DELETE",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/cycles/${cycle_id}/`
        );
        return {
          content: [
            {
              type: "text",
              text: "Cycle deleted successfully",
            },
          ],
        };
      }
    );
  • Higher-level registration call that invokes registerCycleTools, which includes the delete_cycle tool.
    registerCycleTools(server);

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/makeplane/plane-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server