Skip to main content
Glama
BiteFoundry Teams MCP Server

BiteFoundry Teams MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSL_CERT_FILENoPath to a certificate file also read as an extra CA source.
TEAMS_TOKEN_FILENoPath to a file containing a Microsoft Teams access token.
TEAMS_ACCESS_TOKENNoExternal access token for Microsoft Teams authentication.
TEAMS_EXTRA_CA_PEMNoPath to a corporate root CA PEM file for TLS-inspecting proxies.
NODE_EXTRA_CA_CERTSNoPath to extra CA certificates also read for TLS.
TEAMS_TOKEN_REFRESH_CMDNoCommand used to refresh the access token, such as 'az account get-access-token'.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Microsoft Teams tools via Microsoft Graph v1.0. Teams targets accept conv_key (chat:... or chan:team:channel), "Team/Channel", or a unique conversation title substring. Use get_messages with optional before (ISO-8601 timestamp, YYYY-MM-DD, or msg_id) and limit to paginate older history. Destructive operations require confirm: true.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_chatsA

List 1:1, group, and meeting chats (use list_teams_channels for team channels). Reads the local SQLite cache with no Graph request when the cache covers limit; set refresh=true to sync live from Microsoft Graph (about 1 request per 50 chats). Requires delegated Chat.Read. Returns { chats }.

create_chatA

Create a 1:1 chat (1 member; reuses an existing 1:1 chat if one exists) or a new group chat (2+ members). Use search_users first if you need peer Entra user IDs or email addresses. Requires delegated Chat.Create or Chat.ReadWrite. Writes to Microsoft Graph and caches the new conversation; returns { ok, conversation }.

update_chatA

Rename an existing group chat's topic (not supported on 1:1 chats or team channels). Requires delegated Chat.ReadWrite and membership in the group chat. Updates Microsoft Graph and the local cache; returns { ok, conversation }.

list_teams_channelsA

List joined Microsoft Teams and their channels (use list_chats for 1:1/group chats). Cached reads and cursor pages make no Graph request; refresh=true or an empty cache calls Graph for teams (1+ requests) then channels (1 $batch per 20 teams). Requires Team.ReadBasic.All and Channel.ReadBasic.All. Returns paginated { teams, returned, has_more, next_cursor, total }.

get_messagesA

Read messages from a chat or team channel, oldest first (use get_thread to read replies under a channel root post, or search_messages for full-text search across cached history). Fetches live from Microsoft Graph by default (about 1 request per 50 messages); set offline=true to read only the local SQLite cache. Returns { conversation, messages, has_more, next_before }.

get_threadA

Read a team channel root post and up to limit replies, oldest first (use get_messages for top-level channel posts or 1:1/group chats). Online by default (1+ Graph requests, 50 replies each); offline=true reads verified cached replies with no Graph call and errors on cache miss. Returns { conversation, thread: { root, replies, returned, has_more } }.

send_messageA

Post a new Markdown message to a chat or a new root post to a team channel (use reply_message to reply inside a channel thread or quote-reply an existing chat message). Irreversible external side effect notifying conversation members. Requires ChatMessage.Send or ChannelMessage.Send. Returns compact acknowledgement { ok, conversation, message } by default.

reply_messageA

Reply to a team channel root post in its thread, or quote-reply a specific message in a 1:1/group chat (use send_message to start a new channel thread or unquoted chat post). Irreversible external side effect notifying participants. Requires ChatMessage.Send or ChannelMessage.Send. Returns { ok, conversation, reply_to, message }.

send_fileA

Upload a local file from the host running teams to OneDrive/SharePoint and post it as a Teams message attachment (or inline image when inline=true). Irreversible external side effect. Latency scales with file size (single upload up to 4 MiB, 3.2 MiB chunks above). Requires Files.ReadWrite and message send permissions. Returns { ok, conversation, path, inline, message }.

download_attachmentA

Download a file attachment or inline Teams screenshot (hostedContents) from a message to local disk so an agent or user can inspect it. Writes a file to out_dir (or configured downloads folder); latency scales with attachment size. Returns { ok, path (absolute), file_name, mime_type, size_bytes, bytes_written, is_image }.

edit_messageA

Edit a message previously sent by the signed-in user. Choose exactly one mode: markdown (replace full body), find + replace (replace one unique literal phrase while preserving HTML), or subject (rename a channel root post title). Requires Chat.ReadWrite (chats) or ChannelMessage.ReadWrite (channels) and Teams policy allowing edits. Returns { ok, conv_key, msg_id }.

delete_messageA

Soft-delete a message previously sent by the signed-in user (use edit_message instead to fix a typo). Destructive action requiring literal confirm=true; rejected during validation otherwise. Enforces Graph delegated permissions (Chat.ReadWrite or ChannelMessage.ReadWrite) and Teams delete policy. Updates Graph and local cache; returns { ok, conv_key, msg_id }.

search_messagesA

Full-text search cached messages locally using SQLite FTS5 (no Microsoft Graph request). Only finds messages already fetched into cache.db; call get_messages first if recent history is not cached yet. Returns { query, hits }.

list_membersA

List members of a chat or channel with Entra user_id and display_name for @-mentions or get_presence (use search_users for directory lookup). Calls Graph (1+ requests) unless cursor or offline=true reads the local SQLite cache only. Returns paginated { conv_key, title, members, returned, has_more, next_cursor, total }.

search_usersA

Search Microsoft Entra directory users by case-insensitive display name, email, or UPN prefix (use list_members to list participants of a specific chat/channel). Costs 1 Graph request (2 if the tenant rejects $filter and falls back to $search). Requires delegated User.ReadBasic.All or User.Read.All. Returns { users: [{ user_id, display_name, email, user_principal_name }], returned }.

get_presenceA

Fetch current Microsoft Teams availability and activity status for the signed-in user or a batch of Entra user IDs (use search_users or list_members first to look up user IDs). Costs 1 Graph request per 650 user IDs. Requires delegated Presence.Read (self) or Presence.Read.All (others). Returns { presence } when user_ids is omitted, or { presences } when provided.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 16 tools

Disambiguation5/5

Each tool targets a distinct resource+action pair, and descriptions explicitly point to the sibling tool to use instead (e.g. get_messages vs get_thread vs search_messages, list_chats vs list_teams_channels, send_message vs reply_message vs send_file). The potentially confusing message-posting trio is cleanly separated by 'new post' vs 'thread/quote reply' vs 'file attachment'. No two tools appear interchangeable.

Naming Consistency5/5

All 16 tools follow a uniform snake_case verb_noun pattern (create_chat, list_chats, update_chat, get_messages, send_message, edit_message, delete_message, search_messages, list_members, search_users, get_presence). Verb choice is meaningful and consistent: list/get for reads, create/update/edit/delete for lifecycle, send/reply for writes.

Tool Count4/5

At 16 tools this sits just above the ideal band, but each entry maps to a genuinely separate capability (chats, channels, messages, threads, files, members, directory users, presence). Nothing looks like a redundant variant or a thin wrapper, though it is on the heavy side for a Teams messaging client.

Completeness4/5

The surface covers the full message lifecycle (read, thread read, send, reply, edit, delete, search) plus chat creation/rename, attachments up/down, membership, directory lookup, and presence. Gaps are minor: no delete/leave chat, no reactions, and no team/channel creation, but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues