Skip to main content
Glama

delete-shape-item

Remove a specific shape from a Miro board by providing the board ID and item ID to maintain clean and organized visual content.

Instructions

Delete a specific shape item from a Miro board

Input Schema

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

Implementation Reference

  • The asynchronous handler function that validates inputs, calls MiroClient API to delete the shape item, and returns 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().deleteShapeItem(boardId, itemId); return ServerResponse.text(JSON.stringify({ success: true, message: "Shape deleted successfully" }, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • Zod schema defining the input parameters: boardId and itemId.
    boardId: z.string().describe("Unique identifier (ID) of the board that contains the shape"), itemId: z.string().describe("Unique identifier (ID) of the shape that you want to delete") },
  • src/index.ts:160-160 (registration)
    Registration of the deleteShapeItemTool in the ToolBootstrapper chain.
    .register(deleteShapeItemTool)
  • src/index.ts:60-60 (registration)
    Import of the deleteShapeItemTool for registration.
    import deleteShapeItemTool from './tools/deleteShapeItem.js';

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