Skip to main content
Glama

Teams MCP

by floriscornel

get_chat_messages

Retrieve chat messages by specifying a chat ID, with options to filter by user, time range, and sort order. Access message content, sender details, and timestamps for analysis or integration.

Instructions

Retrieve recent messages from a specific chat conversation. Returns message content, sender information, and timestamps.

Input Schema

NameRequiredDescriptionDefault
chatIdYesChat ID (e.g. 19:meeting_Njhi..j@thread.v2
descendingNoSort in descending order (newest first)
fromUserNoFilter messages from specific user ID
limitNoNumber of messages to retrieve
orderByNoSort ordercreatedDateTime
sinceNoGet messages since this ISO datetime
untilNoGet messages until this ISO datetime

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "chatId": { "description": "Chat ID (e.g. 19:meeting_Njhi..j@thread.v2", "type": "string" }, "descending": { "default": true, "description": "Sort in descending order (newest first)", "type": "boolean" }, "fromUser": { "description": "Filter messages from specific user ID", "type": "string" }, "limit": { "default": 20, "description": "Number of messages to retrieve", "maximum": 50, "minimum": 1, "type": "number" }, "orderBy": { "default": "createdDateTime", "description": "Sort order", "enum": [ "createdDateTime", "lastModifiedDateTime" ], "type": "string" }, "since": { "description": "Get messages since this ISO datetime", "type": "string" }, "until": { "description": "Get messages until this ISO datetime", "type": "string" } }, "required": [ "chatId" ], "type": "object" }

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/floriscornel/teams-mcp'

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