Skip to main content
Glama

Plane MCP Server

Official
by makeplane

list_labels

Retrieve all labels associated with a specific project in Plane's project management system using the integrated MCP server for streamlined organization and categorization.

Instructions

Get all labels for a specific project

Input Schema

NameRequiredDescriptionDefault
project_idYesThe uuid identifier of the project to get labels for

Input Schema (JSON Schema)

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

Implementation Reference

  • The async handler function for the list_labels tool, which makes a GET request to the Plane API to fetch all labels for the specified project and returns the JSON response formatted as text content.
    async ({ project_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/labels/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
  • Input schema definition for the list_labels tool using Zod, specifying the required project_id parameter.
    { project_id: z.string().describe("The uuid identifier of the project to get labels for"), },
  • Registration of the list_labels MCP tool within the registerMetadataTools function using server.tool(), including name, description, input schema, and inline handler implementation.
    server.tool( "list_labels", "Get all labels for a specific project", { project_id: z.string().describe("The uuid identifier of the project to get labels for"), }, async ({ project_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/labels/` ); 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