Skip to main content
Glama

list_chats

List the signed-in user's Microsoft Teams chats, including 1:1, group, and meeting chats. Returns chats ordered by latest message activity with pagination support.

Instructions

List the signed-in user's Teams chats (1:1, group, meeting).

Members are expanded so 1:1 chats (which have no topic) are identifiable by participant name. Results come back in Graph's default order (most recent message activity first).

Each item carries two timestamps; use the right one:

  • last_message_time: created time of the most recent message (from the expanded lastMessagePreview). This is the true "last activity" time.

  • metadata_updated: Graph's lastUpdatedDateTime, which only changes on rename/membership events (e.g. someone joining a meeting call), NOT on new messages. Do not use it to judge recency -- a busy 1:1 can show a months-old metadata_updated.

Args: limit: 1-100. Default 25. page_token: Pass next_page_token from a previous result to continue. include_raw: Include the raw Graph payload under "raw" on each item.

Returns: {"items": [trimmed_chat, ...], "next_page_token": str | None}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
page_tokenNo
include_rawNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly explains the two timestamps and their semantics, warns against misusing metadata_updated, discloses the default ordering, and describes how members are expanded. It also states the effect of include_raw. This is exemplary transparency beyond what a schema could convey.

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?

The description is structured with clear sections (Args, Returns) and front-loaded purpose. Every sentence adds value: the timestamp clarification and member expansion note prevent common misinterpretations. There is no filler or redundancy; it is dense yet readable.

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?

Given no output schema, the description explicitly defines the return format (items array and next_page_token). It covers all parameters, explains edge cases (1:1 chats, timestamp misuse), and discloses pagination. For a list tool with no annotations, this is a complete and self-sufficient description.

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

Parameters5/5

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

Schema description coverage is 0%, meaning the schema offers no parameter descriptions. The description fully compensates by documenting each parameter: limit (range and default), page_token (pagination continuation), and include_raw (payload inclusion). It adds meaning beyond the schema's bare type definitions, making it highly effective.

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 states a specific verb ('List') and resource ('Teams chats') and enumerates the chat types (1:1, group, meeting). It distinguishes from siblings like list_chat_messages (messages inside a chat) and list_joined_teams (teams), leaving no ambiguity about what is returned.

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?

The description provides clear context for interpreting results (e.g., member expansion for 1:1 chats) and explains the ordering (most recent message activity first). However, it does not explicitly mention when to choose this tool over alternatives, though the sibling names make the distinction obvious. It lacks explicit 'when not to use' guidance, so a 4 is appropriate.

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