Skip to main content
Glama

add_label

Add a label to a task in FluentBoards project management to organize and categorize work items using board, task, and label identifiers.

Instructions

Add a label to a task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
board_idYesBoard ID
task_idYesTask ID
label_idYesLabel ID

Implementation Reference

  • The handler function that executes the 'add_label' tool logic: destructures board_id, task_id, label_id; POSTs to API `/projects/${board_id}/labels/task`; formats and returns response.
    async (args) => { const { board_id, task_id, label_id } = args; const response = await api.post( `/projects/${board_id}/labels/task`, { taskId: task_id, labelId: label_id } ); return formatResponse(response.data); }
  • Zod input schema for 'add_label' tool parameters: board_id, task_id, label_id (all positive integers).
    { board_id: z.number().int().positive().describe("Board ID"), task_id: z.number().int().positive().describe("Task ID"), label_id: z.number().int().positive().describe("Label ID"), },
  • Registration of the 'add_label' tool in registerLabelTools using server.tool(description, schema, handler).
    server.tool( "add_label", "Add a label to a task", { board_id: z.number().int().positive().describe("Board ID"), task_id: z.number().int().positive().describe("Task ID"), label_id: z.number().int().positive().describe("Label ID"), }, async (args) => { const { board_id, task_id, label_id } = args; const response = await api.post( `/projects/${board_id}/labels/task`, { taskId: task_id, labelId: label_id } ); return formatResponse(response.data); } );
  • src/index.ts:25-25 (registration)
    Top-level call to registerLabelTools(server) in main server setup, which includes registering the 'add_label' tool.
    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