Skip to main content
Glama
Angad-2002

Attendee MCP Server

by Angad-2002

get_chat_messages

Retrieve chat messages from meetings managed by AI bots on the Attendee MCP Server. Input the bot ID to access recorded conversations for transcription or analysis.

Instructions

Get chat messages from the meeting

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bot_idYesID of the bot to get chat messages for

Implementation Reference

  • Executes the get_chat_messages tool: validates bot_id, calls API to fetch chat messages, formats output using helper, and returns text content.
    private async getChatMessages(args: Record<string, unknown>) { const bot_id = args.bot_id as string; if (!bot_id || typeof bot_id !== 'string') { throw new Error("Missing or invalid required parameter: bot_id"); } const data = await this.makeApiRequest(`/api/v1/bots/${bot_id}/chat_messages`); return { content: [ { type: "text", text: this.formatChatMessages(data, bot_id), }, ], }; }
  • Input schema definition for the get_chat_messages tool, specifying bot_id as required string.
    inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot to get chat messages for", }, }, required: ["bot_id"], },
  • src/index.ts:321-334 (registration)
    Tool registration in the tools list returned by listTools handler, defining name, description, and input schema.
    { name: "get_chat_messages", description: "Get chat messages from the meeting", inputSchema: { type: "object", properties: { bot_id: { type: "string", description: "ID of the bot to get chat messages for", }, }, required: ["bot_id"], }, },
  • Formats the raw chat messages data into a human-readable string with timestamps and sender names.
    private formatChatMessages(data: any, botId: string): string { if (!Array.isArray(data) || data.length === 0) { return `💬 No chat messages found for bot ${botId}`; } let chatOutput = `💬 Chat Messages for bot ${botId}:\n\n`; chatOutput += "─".repeat(50) + "\n"; data.forEach((message: any) => { const timestamp = new Date(message.created_at).toLocaleTimeString(); chatOutput += `[${timestamp}] ${message.sender_name}:\n${message.message}\n\n`; }); chatOutput += "─".repeat(50) + `\n📊 Total messages: ${data.length}`; return chatOutput; }

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/Angad-2002/attendee-mcp'

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