Skip to main content
Glama

Teams Read Chat Messages

teams_read_chat_messages
Read-only

Reads messages from a Teams chat or direct message thread.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax messages (default 50)
chat_idYesChat ID from teams_list_chats

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
errorNo
messagesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chat_id / description
      Previous value: -"Chat ID from list_teams_chats"New value: +"Chat ID from teams_list_chats"
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safe-read behavior is covered. The description adds scope (chat vs DM) but does not disclose other behavioral traits like sorting, pagination, or permissions. No contradiction with annotations.

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 a single, complete sentence that front-loads the core functionality. There is zero wasted text or redundancy with the title or schema.

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

Completeness4/5

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

Given the tool's simplicity, strong annotations, full schema coverage, and presence of an output schema, the description is mostly complete. It could benefit from explicitly noting that it excludes channel messages, but the name and sibling context largely compensate.

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 description coverage is 100%, as both parameters (chat_id and limit) have meaningful descriptions. The tool description does not add any additional parameter semantics beyond the schema, so a baseline of 3 is appropriate.

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 uses a specific verb ('Reads') and resource ('messages from a Teams chat or direct message thread'), clearly distinguishing it from sibling tools like teams_read_channel_messages. It succinctly states exactly what the tool does.

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

Usage Guidelines3/5

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

The description implies usage for chat/DM threads but does not explicitly contrast with alternatives such as teams_read_channel_messages or teams_search_messages. No exclusions or when-not-to-use guidance is provided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources