Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

get_state

Retrieve specific state details within a project by providing the project ID and state ID. Ideal for managing and accessing state information in Plane's project management system via the MCP Server.

Instructions

Get details of a specific state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe uuid identifier of the project containing the state
state_idYesThe uuid identifier of the state to get

Implementation Reference

  • Handler function that performs a GET request to retrieve details of a specific project state from the Plane API and returns the response as formatted JSON text.
    async ({ project_id, state_id }) => {
      const response = await makePlaneRequest(
        "GET",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/${state_id}/`
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Zod input schema defining the required project_id and state_id parameters for the get_state tool.
    {
      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 get"),
    },
  • Registration of the get_state tool within the registerMetadataTools function using McpServer.tool method, including description, inline schema, and handler.
    server.tool(
      "get_state",
      "Get details of a specific 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 get"),
      },
      async ({ project_id, state_id }) => {
        const response = await makePlaneRequest(
          "GET",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/states/${state_id}/`
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );

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