Skip to main content
Glama

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

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

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "project_id": { "description": "The uuid identifier of the project containing the state", "type": "string" }, "state_id": { "description": "The uuid identifier of the state to get", "type": "string" } }, "required": [ "project_id", "state_id" ], "type": "object" }

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