Skip to main content
Glama

delete-item

Remove specific items from Miro boards by providing board and item identifiers to manage board content efficiently.

Instructions

Delete a specific item from a Miro board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYesUnique identifier (ID) of the board that contains the item
itemIdYesUnique identifier (ID) of the item that you want to delete

Implementation Reference

  • The main handler function for the 'delete-item' tool. It validates boardId and itemId, calls MiroClient.getApi().deleteItem(boardId, itemId), and returns a success or error response.
    fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } await MiroClient.getApi().deleteItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: `Item ${itemId} successfully deleted from board ${boardId}` }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • The ToolSchema definition including name, description, and Zod input schema for boardId and itemId.
    const deleteItemTool: ToolSchema = { name: "delete-item", description: "Delete a specific item from 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 that you want to delete") },
  • src/index.ts:120-120 (registration)
    Registration of the deleteItemTool in the ToolBootstrapper chain.
    .register(deleteItemTool)
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