Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

list_states

Retrieve all states for a specific project using its unique identifier to manage and organize project workflows within the Plane MCP Server.

Instructions

Get all states for a specific project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe uuid identifier of the project to get states for

Implementation Reference

  • The registration of the 'list_states' tool using server.tool(). Includes the input schema (project_id string) and the handler function that performs a GET request to the Plane API to list states for the given project and returns the JSON response as text content.
    server.tool(
      "list_states",
      "Get all states for a specific project",
      {
        project_id: z.string().describe("The uuid identifier of the project to get states for"),
      },
      async ({ project_id }) => {
        const response = await makePlaneRequest(
          "GET",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/`
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • The handler function for the 'list_states' tool, which fetches states via API using makePlaneRequest and returns formatted JSON.
    async ({ project_id }) => {
      const response = await makePlaneRequest(
        "GET",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/`
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Input schema for 'list_states' tool using Zod: requires project_id as string.
    {
      project_id: z.string().describe("The uuid identifier of the project to get states for"),
    },
  • Top-level registration call to registerMetadataTools, which includes the 'list_states' tool among metadata tools.
    registerMetadataTools(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