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
| Name | Required | Description | Default |
|---|---|---|---|
| label_id | Yes | The uuid identifier of the label to get | |
| project_id | Yes | The 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
- src/tools/metadata.ts:278-291 (handler)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), }, ], }; }
- src/tools/metadata.ts:274-277 (schema)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"), },
- src/tools/metadata.ts:271-292 (registration)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), }, ], }; } );