Skip to main content
Glama

attach-tag

Link specific tags to items on a Miro board by specifying board, tag, and item IDs for organized content 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
itemIdYesUnique identifier (ID) of the item to which you want to attach the tag
tagIdYesUnique identifier (ID) of the tag that you want to attach

Implementation Reference

  • The asynchronous handler function that executes the tool logic: validates required parameters (boardId, tagId, itemId) and attaches the tag to the item using the MiroClient API.
    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); } }
  • The ToolSchema definition including name, description, and Zod input schema for the attach-tag tool.
    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 instance with the ToolBootstrapper in the main server bootstrap process.
    .register(attachTagTool)

Other Tools

Related 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