Skip to main content
Glama
GavinTomlins

rocketchat-mcp-server

by GavinTomlins

get_channel_messages

Read-only

Retrieve channel messages with newest first. Group consecutive same-user messages, expand thread replies, or compact output.

Instructions

Get channel history, newest first.

group merges consecutive same-user messages within 60s (token saver). expand_threads fetches thread replies. compact truncates to id/user/text/ts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
groupNo
offsetNo
channelYes
compactNo
expand_threadsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already declare readOnlyHint=true. The description adds behavioral details: newest-first ordering, grouping of consecutive messages within 60s, thread expansion, and truncation to minimal fields. However, it does not disclose pagination behavior or rate limits.

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 concise: three short sentences. The first sentence states the main purpose, and the next two detail key parameters in a structured manner. No unnecessary words.

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?

The tool has an output schema, so return values need not be explained. However, the description lacks explanation of pagination parameters (count, offset) which are common in history retrieval. Core functionality is covered, but completeness is moderate.

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 0%, so the description must compensate. It explains three parameters (group, expand_threads, compact) with specific semantics (time window, fetching replies, truncation). But it omits count, offset, and channel, leaving half of the parameters undocumented.

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 clearly states the tool gets channel history with messages ordered newest first. It identifies the resource (channel messages) and action (get). While it does not explicitly distinguish from siblings like search_messages or get_message_context, the purpose is specific enough.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives (e.g., search_messages for filtered retrieval). No exclusions or prerequisites are mentioned, leaving the agent to infer usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GavinTomlins/rocketchat-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server