Skip to main content
Glama

create-tag

Add custom tags to Miro boards to organize and categorize content. Specify board ID, tag title, and optional color for visual grouping.

Instructions

Create a new tag on a Miro board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYesUnique identifier (ID) of the board where the tag will be created
dataYesThe content and configuration of the tag
fillColorNoFill color of the tag (hex format, e.g. #000000)

Implementation Reference

  • The handler function that implements the core logic of the 'create-tag' tool, validating inputs, constructing a TagCreateRequest, and calling the Miro API to create a tag on the board.
    fn: async ({ boardId, data, fillColor }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } const createRequest = new TagCreateRequest(); createRequest.title = data.title; if (fillColor) { createRequest.fillColor = fillColor; } const result = await MiroClient.getApi().createTag(boardId, createRequest); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • Zod-based input schema defining the parameters for the 'create-tag' tool: required boardId and data.title, optional fillColor.
    args: { boardId: z.string().describe("Unique identifier (ID) of the board where the tag will be created"), data: z.object({ title: z.string().describe("Title of the tag") }).describe("The content and configuration of the tag"), fillColor: z.string().optional().nullish().describe("Fill color of the tag (hex format, e.g. #000000)") },
  • src/index.ts:165-165 (registration)
    Registers the createTagTool with the ToolBootstrapper instance in the main index file.
    .register(createTagTool)

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