Skip to main content
Glama

delete_label

Remove a label permanently from a FluentBoards project board. This tool deletes labels to clean up board organization and requires confirmation to proceed with deletion.

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, performs safety validation for deletion, and executes the API DELETE request to remove the label from the board.
    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 schema defining input parameters for the delete_label tool: board_id, label_id, and optional confirm_delete.
    {
      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"),
    },
  • MCP server tool registration for 'delete_label', including name, description, input schema, and handler function.
      "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);
      }
    );

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