Skip to main content
Glama

teams_get_messages

Read-only

Read Microsoft Teams conversation messages newest first, filter by time range, and paginate older history with a cursor; accepts chat ID, Teams link, or self-chat notes.

Instructions

Read messages from a conversation, newest first, optionally only between since and until. Use cursor from a previous call for older history. Conversation can be an id, a Teams link, or "notes" (your self-chat).

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": "teams_get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoDo not truncate long messages.
linkNoA Teams message/chat link
limitNoDefault 30
sinceNoOnly messages from this time on (ISO 8601, e.g. 2026-03-03 or 2026-03-03T09:00:00Z)
untilNoOnly messages before this time (ISO 8601)
cursorNo
accountNoAccount alias (see teams_accounts). Defaults to the default account.
include_systemNoInclude system/event messages (joins, calls, renames).
conversation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, it discloses result ordering (newest first), pagination via an opaque cursor, and time-range filtering — genuine behavioral context. It omits rate-limit behavior, what happens with an invalid conversation reference, and whether truncation is signalled, keeping it below a 5.

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?

Two compact sentences, front-loaded with the core action and followed by ordering, filtering, pagination, and accepted conversation forms. No filler.

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

Completeness3/5

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

Nine optional parameters and no output schema, yet the description never indicates what a returned message looks like or how to tell that history is exhausted. The schema covers defaults for limit/full/include_system, so the remaining gap is mainly return-value shape and stopping conditions.

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?

Adds meaning beyond the 78%-covered schema: the conversation argument accepts an id, a link, or the "notes" self-chat, and `cursor` is tied to prior calls for older history. However, the description lumps link and conversation_id together even though they are separate parameters, leaving some ambiguity about which field to populate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource: 'Read messages from a conversation, newest first', plus ordering and pagination semantics. It does not explicitly differentiate itself from siblings like teams_get_message (single message) or teams_search_messages, so it falls short of the top score.

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?

Gives useful in-tool guidance: use `cursor` from a previous call for older history, and the conversation argument accepts an id, a Teams link, or "notes". It offers no when-to-use-versus-alternative routing, e.g. when to prefer teams_search_messages or teams_get_channel_messages_graph, so conditions are only implied.

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

Deploy Server

Other Tools