Skip to main content
Glama

delete-card-item

Remove a specific card from a Miro board by providing the board ID and card item ID. Streamline board management with this targeted deletion tool.

Instructions

Delete a specific card item from a Miro board

Input Schema

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

Implementation Reference

  • The asynchronous function that handles the tool execution: validates boardId and itemId, deletes the card item using MiroClient API, 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().deleteCardItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: `Card Item ${itemId} successfully deleted from board ${boardId}` }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • Zod schema defining the input arguments for the tool: boardId (string) and itemId (string).
    args: { boardId: z.string().describe("Unique identifier (ID) of the board that contains the card"), itemId: z.string().describe("Unique identifier (ID) of the card that you want to delete") },
  • src/index.ts:128-128 (registration)
    Registers the deleteCardItemTool with the ToolBootstrapper instance in the main index file.
    .register(deleteCardItemTool)

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