delete_label
Remove a label permanently from a FluentBoards project board. Specify board and label IDs with confirmation to delete the label.
Instructions
Delete a label from a board permanently
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | Board ID | |
| label_id | Yes | Label ID | |
| confirm_delete | No | Confirmation required: set to true, 'yes', or 'confirm' to proceed |
Implementation Reference
- src/tools/labels.ts:119-130 (handler)Handler function that destructures arguments, validates the delete operation with safety check requiring confirmation, and performs the API DELETE request to remove the label from the board if validated.async (args) => { const { board_id, label_id, confirm_delete } = args; // Validate delete operation safety const safetyCheck = validateDeleteOperation("label", confirm_delete); if (!safetyCheck.allowed) { return formatResponse(createDeleteSafetyError(safetyCheck)); } const response = await api.delete(`/projects/${board_id}/labels/${label_id}`); return formatResponse(response.data); }
- src/tools/labels.ts:114-118 (schema)Zod input schema defining parameters for the delete_label tool: board_id, label_id, and optional confirm_delete for safety.{ board_id: z.number().int().positive().describe("Board ID"), label_id: z.number().int().positive().describe("Label ID"), confirm_delete: z.union([z.boolean(), z.string()]).optional().describe("Confirmation required: set to true, 'yes', or 'confirm' to proceed"), },
- src/tools/labels.ts:111-131 (registration)Complete registration of the 'delete_label' tool via server.tool(), including name, description, input schema, and handler function within the registerLabelTools module.server.tool( "delete_label", "Delete a label from a board permanently", { board_id: z.number().int().positive().describe("Board ID"), label_id: z.number().int().positive().describe("Label ID"), confirm_delete: z.union([z.boolean(), z.string()]).optional().describe("Confirmation required: set to true, 'yes', or 'confirm' to proceed"), }, async (args) => { const { board_id, label_id, confirm_delete } = args; // Validate delete operation safety const safetyCheck = validateDeleteOperation("label", confirm_delete); if (!safetyCheck.allowed) { return formatResponse(createDeleteSafetyError(safetyCheck)); } const response = await api.delete(`/projects/${board_id}/labels/${label_id}`); return formatResponse(response.data); } );
- src/index.ts:25-25 (registration)Top-level call to registerLabelTools(server) which includes the registration of delete_label among other label tools.registerLabelTools(server);