Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

delete_module

Remove a module from a defined project by specifying its unique project and module IDs, enabling efficient management of project components within the Plane MCP Server.

Instructions

Delete a module

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
module_idYesThe uuid identifier of the module to delete
project_idYesThe uuid identifier of the project containing the module

Implementation Reference

  • The handler function that executes the delete_module tool by sending a DELETE request to the Plane API module endpoint and returning the response as text.
    async ({ project_id, module_id }) => {
      const response = await makePlaneRequest(
        "DELETE",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/${module_id}/`
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Zod input schema defining the required project_id and module_id parameters for the delete_module tool.
    {
      project_id: z.string().describe("The uuid identifier of the project containing the module"),
      module_id: z.string().describe("The uuid identifier of the module to delete"),
    },
  • Direct registration of the delete_module tool on the MCP server, including name, description, schema, and handler.
    server.tool(
      "delete_module",
      "Delete a module",
      {
        project_id: z.string().describe("The uuid identifier of the project containing the module"),
        module_id: z.string().describe("The uuid identifier of the module to delete"),
      },
      async ({ project_id, module_id }) => {
        const response = await makePlaneRequest(
          "DELETE",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/${module_id}/`
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • Registration of module tools (including delete_module) by calling registerModuleTools on the server.
    registerModuleTools(server);
  • src/server.ts:15-15 (registration)
    Top-level registration of all tools, which chains to the registration of delete_module.
    registerTools(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