get-item-tags
Retrieve all tags associated with a specific item on a Miro board by providing the board ID and item ID using this tool on the Miro MCP server.
Instructions
Retrieve all tags attached to a specific item on a Miro board
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | Unique identifier (ID) of the board that contains the item | |
| itemId | Yes | Unique identifier (ID) of the item whose tags you want to retrieve |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"boardId": {
"description": "Unique identifier (ID) of the board that contains the item",
"type": "string"
},
"itemId": {
"description": "Unique identifier (ID) of the item whose tags you want to retrieve",
"type": "string"
}
},
"required": [
"boardId",
"itemId"
],
"type": "object"
}
Implementation Reference
- src/tools/getItemTags.ts:13-28 (handler)The handler function that implements the core logic of the 'get-item-tags' tool: input validation, API call to retrieve tags from a Miro board item, and response formatting.fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } const result = await MiroClient.getApi().getTagsFromItem(boardId, itemId); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { return ServerResponse.error(error); } }
- src/tools/getItemTags.ts:6-12 (schema)The ToolSchema definition including the tool name, description, and Zod schemas for input parameters (boardId and itemId).const getItemTagsTool: ToolSchema = { name: "get-item-tags", description: "Retrieve all tags attached to a specific item on a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the item"), itemId: z.string().describe("Unique identifier (ID) of the item whose tags you want to retrieve"), },
- src/index.ts:172-172 (registration)Registration of the getItemTagsTool with the ToolBootstrapper in the main index file..register(getItemTagsTool)