Skip to main content
Glama
BiteFoundry Teams MCP Server

BiteFoundry Teams MCP Server

list_teams_channels

Read-onlyIdempotent

Lists joined Microsoft Teams and their channels, using cached cursor pages and optional live refresh to avoid repeated Graph requests.

Instructions

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

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_teams_channels"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of teams to return per page (1..1000, default 50).
cursorNoOpaque next_cursor from a previous page; reads the next page from the local SQLite cache without calling Microsoft Graph.
refreshNoSync teams and channels live from Microsoft Graph before returning (1+ requests for teams, plus 1 $batch per 20 teams; cannot combine with cursor).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • changedInput schema / properties / cursor / description
      Previous value: -"next_cursor from the previous page; reads the next page from the local cache without calling Microsoft Graph."New value: +"Opaque next_cursor from a previous page; reads the next page from the local SQLite cache without calling Microsoft Graph."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of teams to return per page (1..1000, default 50)."
    • addedInput schema / properties / refresh / default
      Added value: +false
    • changedInput schema / properties / refresh / description
      Previous value: -"Sync teams and channels from Microsoft Graph before returning (1+ requests for teams, plus 1 $batch per 20 teams)."New value: +"Sync teams and channels live from Microsoft Graph before returning (1+ requests for teams, plus 1 $batch per 20 teams; cannot combine with cursor)."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent, yet the description still adds material behavior: caching layers, exact Graph request costs ('1+ requests for teams then 1 $batch per 20 teams'), and required scopes (Team.ReadBasic.All, Channel.ReadBasic.All). This is exactly the cost and permission context an agent needs before choosing refresh=true.

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

Conciseness5/5

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

Three densely packed sentences ordered as purpose → sibling exclusion → cost/caching → permissions → return shape, with no filler. Every clause carries information an agent would otherwise have to guess.

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?

There is no output schema, and the description compensates by stating the return shape ('paginated { teams, returned, has_more, next_cursor, total }'). Combined with permission requirements and caching semantics, nothing essential for correct invocation is missing.

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

Parameters3/5

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

Schema coverage is 100%, so limit, cursor, and refresh are already fully documented, including the cursor/refresh incompatibility. The description reinforces the cost implication of refresh but does not add syntax or constraints beyond what the schema states, so the baseline of 3 applies.

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?

The description opens with a specific verb+resource ('List joined Microsoft Teams and their channels') and immediately contrasts with a named sibling ('use list_chats for 1:1/group chats'), so the agent can separate it from list_chats without opening either schema.

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

Usage Guidelines4/5

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

It names the alternative for chat-style resources and states the conditions that change behavior: cached reads and cursor pages make no Graph call, while refresh=true or an empty cache triggers live Graph requests. It stops short of an explicit 'do not use this if...' exclusion, but the routing guidance is clear.

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