Skip to main content
Glama

teams_get_channel_posts

Read-only

Retrieves posts and replies from a Microsoft Teams channel, including recent posts, older posts before a specified post, or posts around a message. Supports work channels and Teams free communities.

Instructions

Posts in a channel, each with its replies: the newest, older ones (before_post_id) or the ones around a message (around_message_id). Work channels and Teams free communities.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "channel_id": "<channel_id>"
    },
    "name": "teams_get_channel_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
accountNoAccount alias (see teams_accounts). Defaults to the default account.
team_idNoTeam or community thread id (19:…); found from your teams when omitted
channel_idYes
before_post_idNoOlder posts than this one (e.g. the oldest id of the previous page)
around_message_idNoPosts around this message id, e.g. a search hit or a link

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description usefully discloses that replies are inlined with each post, which affects payload size and downstream handling. It says nothing about page size defaults, auth requirements, or rate limiting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence plus a short scope note, with no filler. The trailing fragment 'Work channels and Teams free communities' is terse to the point of being cryptic but earns its place as a scope restriction.

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?

For a six-parameter read tool with no output schema, the definition covers the retrieval modes and the reply-inlining behavior but leaves limit, the channel_id requirement, and account defaulting to the schema. Adequate, though an agent gets no sense of result volume or pagination semantics.

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 coverage is 67%, so the schema already explains account, team_id, before_post_id, and around_message_id. The description reinforces the semantics of the two paging parameters but adds nothing for channel_id, limit, or the omitted team_id resolution path.

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?

The description names the resource (channel posts) and its bundled payload (each with its replies), and enumerates the three retrieval modes. It stops short of an explicit verb and never names how it differs from close siblings such as teams_get_post_replies, so an agent must still infer the boundary.

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 three modes (newest, older than before_post_id, around around_message_id) implicitly tell the agent which parameter selects which window, which is real guidance. However, there is no statement of when to prefer this over teams_get_post_replies or teams_get_channel_messages_graph, and no prerequisites or exclusions.

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