Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

delete_issue_type

Remove an issue type from a project using its unique identifier. This tool helps streamline project management by decluttering outdated or unused issue types in the Plane MCP Server.

Instructions

Delete an issue type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe uuid identifier of the project containing the issue type
type_idYesThe uuid identifier of the issue type to delete

Implementation Reference

  • Registration and inline handler implementation for the 'delete_issue_type' MCP tool. Defines the input schema using Zod, executes a DELETE request to the Plane API via makePlaneRequest helper, and returns the JSON response as text content.
    server.tool(
      "delete_issue_type",
      "Delete an issue type",
      {
        project_id: z.string().describe("The uuid identifier of the project containing the issue type"),
        type_id: z.string().describe("The uuid identifier of the issue type to delete"),
      },
      async ({ project_id, type_id }) => {
        const response = await makePlaneRequest(
          "DELETE",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issue-types/${type_id}/`
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • Shared helper function makePlaneRequest that performs authenticated HTTP requests to the Plane API using axios. Used by the delete_issue_type handler to execute the DELETE operation.
    export async function makePlaneRequest<T>(method: string, path: string, body: any = null): Promise<T> {
      const hostUrl = process.env.PLANE_API_HOST_URL || "https://api.plane.so/";
      const host = hostUrl.endsWith("/") ? hostUrl : `${hostUrl}/`;
      const url = `${host}api/v1/${path}`;
      const headers: Record<string, string> = {
        "X-API-Key": process.env.PLANE_API_KEY || "",
      };
    
      // Only add Content-Type for non-GET requests
      if (method.toUpperCase() !== "GET") {
        headers["Content-Type"] = "application/json";
      }
    
      try {
        const config: AxiosRequestConfig = {
          url,
          method,
          headers,
        };
    
        // Only include body for non-GET requests
        if (method.toUpperCase() !== "GET" && body !== null) {
          config.data = body;
        }
    
        const response = await axios(config);
        return response.data;
      } catch (error) {
        if (axios.isAxiosError(error)) {
          throw new Error(`Request failed: ${error.message}`);
        }
        throw error;
      }
    }
  • Top-level registration call that invokes registerMetadataTools, which in turn registers the delete_issue_type tool among others.
    registerMetadataTools(server);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'Delete' implies a destructive mutation, the description doesn't specify whether this action is reversible, what permissions are required, what happens to associated issues or data, or any rate limits. It lacks critical context for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with a single sentence ('Delete an issue type'), which is front-loaded and wastes no words. For a simple tool name like 'delete_issue_type', this minimalism is efficient, though it may sacrifice completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a destructive deletion tool with no annotations and no output schema, the description is inadequate. It doesn't cover behavioral aspects like irreversibility, permissions, or effects on related data, nor does it explain return values or error conditions. The high schema coverage helps with parameters, but overall context is lacking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with clear documentation for both parameters (project_id and type_id as UUID identifiers). The description adds no additional meaning beyond what the schema provides, such as explaining the relationship between project and issue type or validation rules. With high schema coverage, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Delete an issue type' clearly states the verb (delete) and resource (issue type), making the basic purpose understandable. However, it doesn't differentiate this tool from other deletion tools in the sibling list (like delete_cycle, delete_label, delete_module, etc.), nor does it specify what constitutes an 'issue type' in this context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing to identify the issue type first using get_issue_type or list_issue_types), consequences of deletion, or when not to use it (e.g., if the issue type is in use). The sibling tools include create_issue_type and update_issue_type, but no comparison is made.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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