Skip to main content
Glama

get-shape-item

Retrieve information about a specific shape on a Miro board by providing the board and shape IDs.

Instructions

Retrieve information about a specific shape item on 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 retrieve

Implementation Reference

  • The handler function for the 'get-shape-item' tool. It validates boardId and itemId, calls MiroClient.getApi().getShapeItem, and returns the JSON result or an 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"); } const result = await MiroClient.getApi().getShapeItem(boardId, itemId); return ServerResponse.text(JSON.stringify(result, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • Tool schema definition including name, description, and Zod input schema for boardId and itemId parameters.
    const getShapeItemTool: ToolSchema = { name: "get-shape-item", description: "Retrieve information about a specific shape item on a Miro board", args: { 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 retrieve") },
  • src/index.ts:158-158 (registration)
    Registration of the getShapeItemTool with the ToolBootstrapper instance.
    .register(getShapeItemTool)

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