Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

create_state

Add a new state to a project in the Plane MCP Server by specifying project ID and state details like color and name. Simplifies project management workflows.

Instructions

Create a new state in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe uuid identifier of the project to create the state in
state_dataYes

Implementation Reference

  • Registration of the 'create_state' MCP tool using server.tool(). Includes tool name, description, input schema (project_id and partial StateSchema requiring name, color, group), and inline asynchronous handler that sends a POST request to the Plane API to create the state and returns the JSON response as text content.
    server.tool(
      "create_state",
      "Create a new state in a project",
      {
        project_id: z.string().describe("The uuid identifier of the project to create the state in"),
        state_data: StateSchema.partial().required({
          name: true,
          color: true,
          group: true,
        }),
      },
      async ({ project_id, state_data }) => {
        const response = await makePlaneRequest(
          "POST",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/`,
          state_data
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • Zod schema definition for the State object (exported as StateSchema), used in the input schema for create_state tool to validate state_data.
    export const State = z.object({
      color: z.string().max(255),
      created_at: z.string().datetime({ offset: true }).readonly(),
      created_by: z.string().uuid().readonly(),
      default: z.boolean().optional(),
      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(),
      group: z.any().optional(),
      id: z.string().uuid().readonly(),
      is_triage: z.boolean().optional(),
      name: z.string().max(255),
      project: z.string().uuid().readonly(),
      sequence: z.number().optional(),
      slug: z.string().regex(new RegExp("^[-a-zA-Z0-9_]+$")).max(100).optional(),
      updated_at: z.string().datetime({ offset: true }).readonly(),
      updated_by: z.string().uuid().readonly(),
      workspace: z.string().uuid().readonly(),
    });
    export type State = z.infer<typeof State>;
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Create' implies a write/mutation operation, the description doesn't address permissions needed, whether this is idempotent, what happens on conflicts, or what the response contains. For a creation tool with complex nested parameters, this leaves significant behavioral gaps.

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, efficient sentence that gets straight to the point with zero wasted words. It's appropriately sized for a tool with a clear primary function, though this conciseness comes at the cost of missing important contextual information.

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 complex nested parameters (state_data has 18 properties) and no annotations or output schema, the description is inadequate. It doesn't explain what a 'state' represents in this system, what fields are required versus optional, or what the tool returns. The agent would struggle to use this effectively without trial and error.

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 description mentions 'project' and 'state' which align with the two parameters (project_id and state_data), but adds no semantic details beyond what's in the schema. With 50% schema description coverage (only project_id has a description), the description doesn't compensate for the undocumented state_data properties. The baseline is 3 since the description at least hints at the parameter purposes.

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 state in a project'), making the purpose immediately understandable. However, it doesn't differentiate this tool from other creation tools like create_cycle, create_issue, or create_project, which all follow the same pattern of creating resources within projects.

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. There's no mention of prerequisites, when this is appropriate versus other state-related tools (like update_state or list_states), or any contextual constraints. The agent must infer usage from the tool name alone.

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