Skip to main content
Glama

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
NameRequiredDescriptionDefault
board_idYesBoard ID
label_idYesLabel ID
confirm_deleteNoConfirmation required: set to true, 'yes', or 'confirm' to proceed

Implementation Reference

  • 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); }
  • 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"), },
  • 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);

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/danieliser/fluent-boards-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server