Skip to main content
Glama

delete-document-item

Remove a specific document item from a Miro board by providing the board ID and item ID. Simplify board management by deleting unnecessary content.

Instructions

Delete a specific document item from a Miro board

Input Schema

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

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 document", "type": "string" }, "itemId": { "description": "Unique identifier (ID) of the document that you want to delete", "type": "string" } }, "required": [ "boardId", "itemId" ], "type": "object" }

Implementation Reference

  • The handler function that executes the logic for deleting a document item by calling the Miro API.
    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().deleteDocumentItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: "Document item successfully deleted" })); } catch (error) { return ServerResponse.error(error); } }
  • The ToolSchema definition including name, description, and input schema using Zod for the delete-document-item tool.
    const deleteDocumentItemTool: ToolSchema = { name: "delete-document-item", description: "Delete a specific document item from a Miro board", args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the document"), itemId: z.string().describe("Unique identifier (ID) of the document that you want to delete") },
  • src/index.ts:145-145 (registration)
    Registration of the deleteDocumentItemTool in the ToolBootstrapper chain.
    .register(deleteDocumentItemTool)

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