Skip to main content
Glama

attach-tag

Attach tags to items on Miro boards to organize and categorize content for better workflow management.

Instructions

Attach a tag to 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 attach
itemIdYesUnique identifier (ID) of the item to which you want to attach the tag

Implementation Reference

  • The async function that implements the 'attach-tag' tool logic: validates required inputs (boardId, tagId, itemId), calls Miro API to attach tag to item, 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"); } await MiroClient.getApi().attachTagToItem(boardId, itemId, tagId); return ServerResponse.text(JSON.stringify({ success: true, message: "Tag attached successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • ToolSchema definition for 'attach-tag' including name, description, and Zod schemas for input parameters: boardId, tagId, itemId.
    const attachTagTool: ToolSchema = { name: "attach-tag", description: "Attach a tag to 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 attach"), itemId: z.string().describe("Unique identifier (ID) of the item to which you want to attach the tag") },
  • src/index.ts:170-170 (registration)
    Registers the attachTagTool with the ToolBootstrapper instance.
    .register(attachTagTool)

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