Skip to main content
Glama

Plane MCP Server

Official
by makeplane

get_label

Retrieve detailed information about a specific label within a project using the Plane MCP Server. Provide the project and label IDs to access label data quickly and accurately.

Instructions

Get details of a specific label

Input Schema

NameRequiredDescriptionDefault
label_idYesThe uuid identifier of the label to get
project_idYesThe uuid identifier of the project containing the label

Input Schema (JSON Schema)

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

Implementation Reference

  • Handler function that fetches the details of a specific label by making a GET request to the Plane API endpoint for the given project and label ID, then returns the JSON-formatted response as tool content.
    async ({ project_id, label_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/labels/${label_id}/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
  • Input schema definition for the 'get_label' tool using Zod, specifying project_id and label_id as required string parameters.
    { project_id: z.string().describe("The uuid identifier of the project containing the label"), label_id: z.string().describe("The uuid identifier of the label to get"), },
  • Registration of the MCP 'get_label' tool via server.tool() call, including name, description, input schema, and handler implementation.
    server.tool( "get_label", "Get details of a specific label", { project_id: z.string().describe("The uuid identifier of the project containing the label"), label_id: z.string().describe("The uuid identifier of the label to get"), }, async ({ project_id, label_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/labels/${label_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