Skip to main content
Glama

delete-text-item

Remove a text item from a Miro board by specifying the board ID and item ID to manage content effectively.

Instructions

Delete a specific text item from a Miro board

Input Schema

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

Implementation Reference

  • The asynchronous handler function that implements the core logic of the 'delete-text-item' tool. It validates inputs, calls the Miro API to delete the text item, and returns appropriate success or error responses.
    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().deleteTextItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: "Text item successfully deleted" })); } catch (error) { return ServerResponse.error(error); } }
  • Zod schema defining the input parameters for the tool: boardId and itemId, both required strings with descriptions.
    args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the text item"), itemId: z.string().describe("Unique identifier (ID) of the text item that you want to delete") },
  • src/index.ts:149-149 (registration)
    Registration of the deleteTextItemTool in the ToolBootstrapper chain in the main index file.
    .register(deleteTextItemTool)
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