Skip to main content
Glama
cloud-ru-tech

mcp-server-mattermost

get_thread

Read-onlyIdempotent

Retrieve the complete thread, including root post and replies in chronological order, to read full conversation context before replying.

Instructions

Get all messages in a thread.

Returns the root post and all replies in chronological order. Use to read full conversation context before replying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYes26-character post/message identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderYesPost IDs in display order
postsYesMap of post ID to Post object
truncatedNoTrue when the response hit a Mattermost response cap — more posts exist beyond this batch
next_post_idNoNext post ID for pagination
prev_post_idNoPrevious post ID for pagination

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.1
    • changedOutput schema / properties / posts / additionalProperties / required
      Previous value: -[
      -  "id",
      -  "create_at",
      -  "update_at",
      -  "delete_at",
      -  "edit_at",
      -  "user_id",
      -  "channel_id",
      -  "root_id",
      -  "original_id",
      -  "message",
      -  "type",
      -  "hashtags",
      -  "file_ids",
      -  "pending_post_id",
      -  "is_pinned"
      -]New value: +[
      +  "id",
      +  "create_at",
      +  "update_at",
      +  "delete_at",
      +  "edit_at",
      +  "user_id",
      +  "channel_id",
      +  "root_id",
      +  "original_id",
      +  "message",
      +  "type",
      +  "hashtags",
      +  "pending_post_id",
      +  "is_pinned"
      +]
  2. First observedv0.5.1

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered. Description adds that it returns chronological order and includes the root post, which is useful context beyond annotations. No contradictions, but it does not disclose any limits (e.g., pagination) or error conditions. Given the annotation coverage, a 3 is appropriate as it adds some value but not extensive behavioral detail.

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?

Description is concise with three sentences, zero filler. The core purpose is front-loaded in the first sentence, followed by useful return details, and finally a clear usage note. Every sentence earns its place, and the structure is scannable for an agent.

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?

For a simple read tool with one fully documented parameter, an output schema, and annotations covering safety, the description is complete. It states what it returns (root post and replies in order) and hints at usage. No missing information that would prevent an agent from calling it correctly. The output schema handles return value details, so no gap.

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?

The schema already documents post_id with a clear description including an example. Schema coverage is 100%, so the schema fully explains the parameter. The description does not add any additional meaning about the parameter format or constraints beyond what the schema provides. Baseline 3 is correct as the schema carries the heavy lifting.

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?

Description clearly states the tool retrieves all messages in a thread, including root post and replies in chronological order. This distinguishes it from sibling tools like get_channel_messages or search_messages, which focus on channels or search results. The verb 'get' plus resource 'thread' is specific and unambiguous.

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?

Description explicitly mentions using this tool to read full conversation context before replying, which provides clear context for when it should be used. It does not explicitly name alternative tools or when not to use it, but the purpose is distinct enough that an agent can infer when to choose it over siblings. Lacks explicit exclusions, but the guidance is adequate for a simple read tool.

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