Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

update_state

Modify an existing state within a project by specifying its identifier and updating relevant fields such as name, description, or color using the Plane MCP Server.

Instructions

Update an existing state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe uuid identifier of the project containing the state
state_dataYesThe fields to update on the state
state_idYesThe uuid identifier of the state to update

Implementation Reference

  • Handler function that executes the update_state tool by sending a PATCH request to the Plane API to update the specified state with the provided data and returns the JSON response as text content.
    async ({ project_id, state_id, state_data }) => {
      const response = await makePlaneRequest(
        "PATCH",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/${state_id}/`,
        state_data
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Input schema validation using Zod for the update_state tool parameters: project_id, state_id, and partial state_data based on StateSchema.
    {
      project_id: z.string().describe("The uuid identifier of the project containing the state"),
      state_id: z.string().describe("The uuid identifier of the state to update"),
      state_data: StateSchema.partial().describe("The fields to update on the state"),
    },
  • Registration of the 'update_state' tool on the MCP server within registerMetadataTools, including description, input schema, and handler function.
    server.tool(
      "update_state",
      "Update an existing state",
      {
        project_id: z.string().describe("The uuid identifier of the project containing the state"),
        state_id: z.string().describe("The uuid identifier of the state to update"),
        state_data: StateSchema.partial().describe("The fields to update on the state"),
      },
      async ({ project_id, state_id, state_data }) => {
        const response = await makePlaneRequest(
          "PATCH",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/${state_id}/`,
          state_data
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • Base Zod schema for State object, imported as StateSchema and used in partial form for update_state input.
    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>;
Behavior1/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure but offers none. It doesn't mention whether this is a safe operation, what permissions are required, whether it's idempotent, what happens on partial updates, or any side effects. The single phrase 'Update an existing state' provides zero behavioral context beyond the basic action implied by the name.

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 maximally concise at just three words. While severely under-specified, it contains zero wasted words and is front-loaded with the core action. This extreme brevity represents efficient communication, though at the cost of completeness.

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

Completeness1/5

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

For a mutation tool with 3 required parameters (including a complex nested object), no annotations, and no output schema, the description is completely inadequate. It doesn't explain what a 'state' is, what fields are updatable, what the operation returns, or any behavioral characteristics. The agent would struggle to use this tool correctly based solely on the description.

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?

With 100% schema description coverage, the schema fully documents all three parameters (project_id, state_id, state_data) and their nested properties. The description adds no parameter information beyond what's already in the structured schema, so it meets the baseline expectation but doesn't provide additional value through examples, constraints, or usage patterns.

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

Purpose2/5

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

The description 'Update an existing state' is a tautology that merely restates the tool name 'update_state' without adding meaningful context. It specifies the verb 'update' and resource 'state' but lacks specificity about what a 'state' represents in this system or what aspects can be updated, making it only marginally better than just the name alone.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance on when to use this tool versus alternatives. With sibling tools like 'create_state', 'delete_state', 'get_state', and 'list_states', there's no indication of prerequisites, appropriate contexts, or differentiation from related operations. This leaves the agent with no usage direction.

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