Skip to main content
Glama

Teams MCP

by floriscornel

get_recent_messages

Retrieve recent Microsoft Teams messages with filtering by time, users, mentions, attachments, importance, and keywords. Includes options to search channels or chats and specify teams.

Instructions

Get recent messages from across Teams with advanced filtering options. Can filter by time range, scope (channels vs chats), teams, channels, and users.

Input Schema

NameRequiredDescriptionDefault
fromUserNoFilter messages from this user ID
hasAttachmentsNoFilter messages with attachments
hoursNoGet messages from the last N hours (max 168 = 1 week)
importanceNoFilter by message importance
includeChannelsNoInclude channel messages
includeChatsNoInclude chat messages
keywordsNoKeywords to search for in message content
limitNoMaximum number of messages to return
mentionsUserNoFilter messages that mention this user ID
teamIdsNoSpecific team IDs to search in

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "fromUser": { "description": "Filter messages from this user ID", "type": "string" }, "hasAttachments": { "description": "Filter messages with attachments", "type": "boolean" }, "hours": { "default": 24, "description": "Get messages from the last N hours (max 168 = 1 week)", "maximum": 168, "minimum": 1, "type": "number" }, "importance": { "description": "Filter by message importance", "enum": [ "low", "normal", "high", "urgent" ], "type": "string" }, "includeChannels": { "default": true, "description": "Include channel messages", "type": "boolean" }, "includeChats": { "default": true, "description": "Include chat messages", "type": "boolean" }, "keywords": { "description": "Keywords to search for in message content", "type": "string" }, "limit": { "default": 50, "description": "Maximum number of messages to return", "maximum": 100, "minimum": 1, "type": "number" }, "mentionsUser": { "description": "Filter messages that mention this user ID", "type": "string" }, "teamIds": { "description": "Specific team IDs to search in", "items": { "type": "string" }, "type": "array" } }, "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