Skip to main content
Glama
BiteFoundry Teams MCP Server

BiteFoundry Teams MCP Server

get_thread

Read-onlyIdempotent

Fetches a Microsoft Teams channel thread by root message ID, returning oldest replies up to a set limit with optional offline cache reads.

Instructions

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 } }.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>",
      "root_msg_id": "<root_msg_id>"
    },
    "name": "get_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of replies to return, excluding the root post (1..1000, default 50).
targetYesChannel conv_key (chan:team:channel), "Team/Channel", or unique channel title substring.
compactNoCompact output (default true); set false for full conversation and message objects.
offlineNoRead verified replies from the local SQLite cache with no Graph request; returns an error if cached coverage is missing or incomplete.
root_msg_idYesMessage ID of the channel root post whose replies should be fetched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.1
    • changedInput schema / properties / compact / description
      Previous value: -"Compact output (default). Set false for full conversation and message objects."New value: +"Compact output (default true); set false for full conversation and message objects."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of replies to return, excluding the root post (1..1000, default 50)."
    • changedInput schema / properties / offline / description
      Previous value: -"Read verified replies from the local SQLite cache (no Graph request). A cache miss or insufficient reply coverage returns an error."New value: +"Read verified replies from the local SQLite cache with no Graph request; returns an error if cached coverage is missing or incomplete."
    • addedInput schema / properties / root_msg_id / description
      Added value: +"Message ID of the channel root post whose replies should be fetched."
    • changedInput schema / properties / target / description
      Previous value: -"Channel conv_key, \"Team/Channel\", or unique channel title."New value: +"Channel conv_key (chan:team:channel), \"Team/Channel\", or unique channel title substring."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real context beyond them: online is the default with 1+ Graph requests batched at 50 replies each, while offline=true makes no Graph call and errors when cached coverage is missing or incomplete. It also discloses the response envelope, which no output schema documents.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: purpose first, then the alternative, then online/offline behavior, then return shape. The parenthetical request-count aside is useful; the nested return-object notation is slightly cryptic but compact and earns its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description supplies the return envelope itself ({ conversation, thread: { root, replies, returned, has_more } }) and covers the offline/online tradeoff. For a 5-parameter read tool, nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline 3, but the description adds cross-parameter meaning the schema alone does not convey: limit counts replies excluding the root and results come back oldest first, and offline's error-on-miss behavior is framed against the default online mode.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (read a team channel root post plus up to limit replies) and pins the ordering ('oldest first'), which is information not in the name or schema. It also names the sibling it is not: 'use get_messages for top-level channel posts or 1:1/group chats'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance: get_messages for top-level posts or chats, get_thread for replies to a root post. It also states the online-vs-offline decision rule, with the consequence of choosing offline (errors on cache miss) spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.