Skip to main content
Glama

get-document-item

Retrieve details of a specific document item on a Miro board by providing the board ID and document ID. Simplify accessing and managing document information within Miro's collaborative environment.

Instructions

Retrieve information about a specific document item on a Miro board

Input Schema

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

Implementation Reference

  • The handler function that executes the tool logic: validates boardId and itemId, fetches the document item from Miro API, and returns the JSON response or error.
    fn: async ({ boardId, itemId }) => { try { if (!boardId) { return ServerResponse.error("Board ID is required"); } if (!itemId) { return ServerResponse.error("Item ID is required"); } const documentData = await MiroClient.getApi().getDocumentItem(boardId, itemId); return ServerResponse.text(JSON.stringify(documentData, null, 2)); } catch (error) { return ServerResponse.error(error); } }
  • Zod schema defining the input parameters: boardId and itemId as strings with descriptions.
    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 retrieve") },
  • src/index.ts:143-143 (registration)
    Registers the getDocumentItemTool with the MCP server via ToolBootstrapper chain.
    .register(getDocumentItemTool)

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