Skip to main content
Glama

create_miro_board

Create Miro boards with learning session content, including frames, sticky notes, and code blocks, for structured technical practice sessions.

Instructions

Create a new Miro board OR add frames to an existing board. This tool uses the Miro REST API to create boards with frames, sticky notes, text, and code blocks. It can create standalone boards or add content to existing boards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionContentYesSession content from generate_session output
existingBoardIdNoOptional: ID of an existing Miro board to add frames to. If not provided, creates a new board.

Implementation Reference

  • Zod input validation schema for the create_miro_board tool.
    const CreateMiroBoardInputSchema = z.object({ sessionContent: z.any(), existingBoardId: z.string().optional(), });
  • src/index.ts:135-152 (registration)
    Tool metadata registration in ListToolsRequestHandler defining name, description, and input schema.
    { name: "create_miro_board", description: "Create a new Miro board OR add frames to an existing board. This tool uses the Miro REST API to create boards with frames, sticky notes, text, and code blocks. It can create standalone boards or add content to existing boards.", inputSchema: { type: "object", properties: { sessionContent: { type: "object", description: "Session content from generate_session output", }, existingBoardId: { type: "string", description: "Optional: ID of an existing Miro board to add frames to. If not provided, creates a new board.", }, }, required: ["sessionContent"], }, },
  • src/index.ts:244-245 (registration)
    Dispatch registration in CallToolRequestHandler switch statement routing to the handler method.
    case "create_miro_board": return await this.createMiroBoard(request.params.arguments);
  • Main handler function that executes the create_miro_board tool logic, handling input validation, Miro integration check, delegation to create or update board, and response formatting.
    private async createMiroBoard(args: any) { const input = CreateMiroBoardInputSchema.parse(args); try { if (!this.miroIntegration) { throw new Error('Miro integration not initialized. Ensure MIRO_ACCESS_TOKEN is set in the environment.'); } let layout; if (input.existingBoardId) { // Add frames to existing board try { layout = await this.miroIntegration.addFramesToExistingBoard(input.existingBoardId, input.sessionContent); } catch (error) { throw new Error(`Failed to add frames to existing board: ${error instanceof Error ? error.message : String(error)}`); } } else { // Create new board try { layout = await this.miroIntegration.createLearningHourBoard(input.sessionContent); } catch (error) { throw new Error(`Failed to create new Miro board: ${error instanceof Error ? error.message : String(error)}`); } } return { content: [ { type: "text", text: `✅ Miro board created successfully!`, }, { type: "text", text: `Board Name: ${input.sessionContent.miroContent.boardTitle}`, }, { type: "text", text: `Board ID: ${layout.boardId}`, }, { type: "text", text: `View Link: ${layout.viewLink || 'https://miro.com/app/board/' + layout.boardId}`, }, { type: "text", text: `\nThe board includes:\n- Overview section with session description\n- Learning objectives\n- 4C activities (Connect, Concept, Concrete, Conclusion)\n- Discussion prompts\n- Key takeaways`, }, ], }; } catch (error) { throw new Error(`Failed to create Miro board: ${error instanceof Error ? error.message : String(error)}`); } }
  • Key helper method in MiroIntegration class that orchestrates new board creation, content processing, and layout population (slide or vertical).
    async createLearningHourBoard(sessionContent: SessionContent): Promise<LearningHourMiroLayout> { // Post-process content to replace placeholders const processedContent = this.contentPostProcessor.processSessionContent(sessionContent); const boardName = processedContent.miroContent.boardTitle; const board = await this.createBoard(boardName, processedContent.sessionOverview); const style = processedContent.miroContent.style ?? 'slide'; const layout: LearningHourMiroLayout = { boardId: board.id, viewLink: board.viewLink, sections: { overview: {} as MiroFrame, objectives: [], activities: [], discussions: [], takeaways: [] } }; if (style === 'slide') { return await this.createSlideLayout(board.id, processedContent, layout); } else { return await this.createVerticalLayout(board.id, processedContent, layout); } }

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/SDiamante13/learning-hour-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server