Skip to main content
Glama
BiteFoundry Teams MCP Server

BiteFoundry Teams MCP Server

list_chats

Read-onlyIdempotent

Lists 1:1, group, and meeting chats from a local SQLite cache, with optional live sync from Microsoft Graph.

Instructions

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

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_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of chats to return (1..1000, default 50).
refreshNoSync chats live from Microsoft Graph before returning (about 1 request per 50 chats).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of chats to return (1..1000, default 50)."
    • addedInput schema / properties / refresh / default
      Added value: +false
    • changedInput schema / properties / refresh / description
      Previous value: -"Sync chats from Microsoft Graph before returning (about 1 request per 50 chats)."New value: +"Sync chats live from Microsoft Graph before returning (about 1 request per 50 chats)."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, and the description adds real context beyond them: local SQLite cache reads avoid Graph traffic, refresh triggers a live sync with an approximate request cost, and delegated Chat.Read is required. The only minor omission is whether cache results can be stale or partial relative to Graph.

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 tight sentences: scope and sibling exclusion first, then the cache/live behavior and cost, then the permission and return shape. No filler and nothing buried.

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?

For a two-parameter read tool with no output schema, the description covers scope, alternatives, execution mode, cost, permission, and the return key ({ chats }), leaving nothing an agent needs before calling it.

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 both parameters are already documented; the description still adds meaning by explaining that limit interacts with cache coverage to determine whether any Graph request happens, which the schema's 'maximum number of chats to return' wording does not convey.

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 (list chats) plus the concrete scope covered — 1:1, group, and meeting chats — and explicitly excludes team channels by naming the sibling that handles them.

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?

Gives an explicit routing rule to list_teams_channels for team channels, and states the condition that selects live syncing: default cache read when the cache covers limit, refresh=true otherwise, with the cost of that choice (about 1 request per 50 chats).

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