Skip to main content
Glama

list_channel_messages

Fetch root messages from a Microsoft Teams channel, newest first. Use team and channel IDs to retrieve message snippets or full bodies, with pagination support.

Instructions

List root messages in a channel, newest first.

Replies are not included here; fetch them with list_message_replies.

Args: team_id: Graph team id. channel_id: Graph channel id (from list_channels). limit: 1-50 (Graph caps channel message pages at 50). Default 25. page_token: Continuation token from a previous result. include_body: When True, include each message's full body and any attachment card payloads (e.g. Adaptive Card JSON for bot posts). Default False (snippet only; card text still feeds the snippet). include_raw: Include the raw Graph payload under "raw" on each item.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
team_idYes
channel_idYes
page_tokenNo
include_rawNo
include_bodyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden. It discloses the return format, pagination via next_page_token, the effect of include_body and include_raw, the default limit, and the Graph cap of 50. It also notes that card text feeds the snippet, which is a non-obvious behavior. No contradictions with annotations (none present).

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 efficiently structured with clear Args and Returns sections. Each parameter gets a single line, and the overall text is compact yet thorough. No redundant sentences; every clause adds information.

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?

The tool has no output schema, but the description fully specifies the return object shape and pagination. It covers all parameters, defaults, and constraints, and even clarifies a sibling tool for replies. It is complete for an agent to call it correctly without additional lookup.

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%, so the description fully compensates by explaining every parameter: team_id, channel_id, limit (with range and default), page_token, include_body (with detailed effect), and include_raw. It adds constraints and context far beyond the schema's bare type definitions.

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 clearly states the tool lists root messages in a channel, newest first, and explicitly distinguishes itself from replies by noting they are fetched separately. The verb 'list' and resource 'channel messages' are specific, and the sentence 'Replies are not included here' differentiates it from sibling tools like list_message_replies.

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?

It explicitly states when not to use it (for replies) and provides the alternative tool (list_message_replies). It also references how to obtain the channel_id (from list_channels), giving clear context on prerequisites. This meets the 'explicit when/when-not/alternatives' standard.

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