Skip to main content
Glama

detach-tag

Remove a tag from a specific item on a Miro board by providing board, tag, and item identifiers.

Instructions

Detach a tag from an item on a Miro board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYesUnique identifier (ID) of the board that contains the tag and item
tagIdYesUnique identifier (ID) of the tag that you want to detach
itemIdYesUnique identifier (ID) of the item from which you want to detach the tag

Implementation Reference

  • The main handler function that implements the detach-tag tool logic: validates required parameters (boardId, tagId, itemId), calls MiroClient.getApi().removeTagFromItem, and returns success or error response.
    fn: async ({ boardId, tagId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!tagId) { return ServerResponse.error("Tag ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } // Use the SDK method to detach a tag from an item await MiroClient.getApi().removeTagFromItem(boardId, itemId, tagId); return ServerResponse.text(JSON.stringify({ success: true, message: "Tag detached successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • ToolSchema defining the tool name, description, and input parameters schema using Zod for boardId, tagId, and itemId.
    const detachTagTool: ToolSchema = { name: "detach-tag", description: "Detach a tag from an item on a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the tag and item"), tagId: z.string().describe("Unique identifier (ID) of the tag that you want to detach"), itemId: z.string().describe("Unique identifier (ID) of the item from which you want to detach the tag") },
  • src/index.ts:171-171 (registration)
    Registers the detachTagTool instance with the ToolBootstrapper server chain.
    .register(detachTagTool)
Install Server

Other Tools

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/k-jarzyna/mcp-miro'

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