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
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The uuid identifier of the project containing the state | |
| state_id | Yes | The 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
- src/tools/metadata.ts:157-170 (handler)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), }, ], }; }
- src/tools/metadata.ts:153-156 (schema)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"), },
- src/tools/metadata.ts:150-171 (registration)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), }, ], }; } );