Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

create_issue_type

Create a new issue type in a specified project using Plane MCP Server, enabling efficient project management with customizable issue categories.

Instructions

Create a new issue type in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_type_dataYes
project_idYesThe uuid identifier of the project to create the issue type in

Implementation Reference

  • The async handler function that makes a POST request to the Plane API to create an issue type and returns the JSON response as text content.
    async ({ project_id, issue_type_data }) => {
      const response = await makePlaneRequest(
        "POST",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issue-types/`,
        issue_type_data
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Zod schema for IssueTypeAPI (imported as IssueTypeSchema), defining the structure of issue type data used in the tool's input validation for issue_type_data.
    export const IssueTypeAPI = z.object({
      created_at: z.string().datetime({ offset: true }).readonly(),
      created_by: z.string().uuid().readonly(),
      deleted_at: z.string().datetime({ offset: true }).readonly(),
      description: z.string().optional(),
      external_id: z.string().max(255).optional(),
      external_source: z.string().max(255).optional(),
      id: z.string().uuid().readonly(),
      is_active: z.boolean().optional(),
      is_default: z.boolean().readonly(),
      level: z.number().int().readonly(),
      logo_props: z.any().readonly(),
      name: z.string().max(255),
      project_ids: z.array(z.string().uuid()).optional(),
      updated_at: z.string().datetime({ offset: true }).readonly(),
      updated_by: z.string().uuid().readonly(),
      workspace: z.string().uuid().readonly(),
    });
    export type IssueTypeAPI = z.infer<typeof IssueTypeAPI>;
  • MCP server.tool registration for 'create_issue_type', specifying name, description, input schema, and handler function.
    server.tool(
      "create_issue_type",
      "Create a new issue type in a project",
      {
        project_id: z.string().describe("The uuid identifier of the project to create the issue type in"),
        issue_type_data: IssueTypeSchema.partial().required({
          name: true,
          description: true,
        }),
      },
      async ({ project_id, issue_type_data }) => {
        const response = await makePlaneRequest(
          "POST",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issue-types/`,
          issue_type_data
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • Utility function makePlaneRequest used by the handler to perform authenticated HTTP requests to the Plane API.
    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;
      }
    }
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 'create' implies a mutation, it doesn't specify whether this requires admin permissions, what happens on failure, or if it's idempotent. It also doesn't describe the return value or any side effects, which is critical for a creation tool with no output schema.

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 a single, clear sentence with no wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. Every part of the sentence contributes directly to understanding the tool's purpose.

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?

For a creation tool with no annotations and no output schema, the description is insufficient. It doesn't cover behavioral aspects like permissions, error handling, or return values, and it ignores the complexity of the nested 'issue_type_data' parameter. Given the context signals, more detail is needed to guide effective tool usage.

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?

Schema description coverage is 50%, with only 'project_id' having a description. The tool description adds no parameter details beyond what's in the schema, failing to explain the complex 'issue_type_data' object or its required fields like 'name' and 'description'. However, since there are only 2 parameters and the schema provides some structure, it meets the baseline for minimal viability.

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

Purpose4/5

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

The description clearly states the action ('create') and resource ('new issue type in a project'), making the purpose understandable. It distinguishes from siblings like 'create_issue' or 'create_label' by specifying the resource type. However, it doesn't explicitly differentiate from 'update_issue_type' or 'delete_issue_type' in the same domain.

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 like 'update_issue_type' or 'list_issue_types'. It doesn't mention prerequisites, such as needing an existing project, or constraints, like permissions required for creation. This leaves the agent with minimal context for tool selection.

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