delete_label
Remove a specific label from a project in Plane MCP Server by providing the project and label UUID identifiers.
Instructions
Delete a label
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label_id | Yes | The uuid identifier of the label to delete | |
| 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 delete",
"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:346-367 (registration)Full registration of the 'delete_label' MCP tool, including inline Zod input schema (project_id and label_id) and the handler function that executes a DELETE request to the Plane API to delete the specified label, returning the JSON response as text content.server.tool( "delete_label", "Delete a 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 delete"), }, async ({ project_id, label_id }) => { const response = await makePlaneRequest( "DELETE", `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:353-366 (handler)The handler function for the delete_label tool. It takes project_id and label_id, makes a DELETE request to the corresponding Plane API endpoint using makePlaneRequest helper, and returns the response as a text content block with JSON stringified.async ({ project_id, label_id }) => { const response = await makePlaneRequest( "DELETE", `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:349-352 (schema)Zod input schema for the delete_label tool, requiring project_id (string) and label_id (string) with descriptions.{ 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 delete"), },