Skip to main content
Glama
ttm-telegram

ttm-telegram

by toantranmei

Get Messages

get_messages

Retrieve text messages from a Telegram group within a specified date range, with an optional limit up to 1,000 messages.

Instructions

Đọc tin nhắn chữ của một nhóm trong khoảng ngày.

start_date, end_date: YYYY-MM-DD, tính theo múi giờ TELEGRAM_TZ (mặc định Asia/Ho_Chi_Minh). limit: tối đa 1000.

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": {
      "group_id": "<group_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
end_dateYes
group_idYes
start_dateYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose genuinely useful traits — date interpretation follows the TELEGRAM_TZ timezone (default Asia/Ho_Chi_Minh), and only text messages are returned — but says nothing about permissions, pagination/truncation, or what happens when the date range is large.

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?

The purpose sentence is front-loaded and each following line is a compact, non-redundant parameter note. Nothing is padded, though the parameter block does not follow a consistent labeled structure.

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?

An output schema exists, so return values need no prose, which lowers the bar. Still, for a 4-parameter tool with three required parameters, leaving group_id entirely undefined and never mentioning the default limit or result-size behavior leaves real gaps.

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 is the only documentation source. It usefully defines the date format and timezone for start_date/end_date and states a ceiling of 1000 for limit, but omits limit's actual default (500, visible only in the schema) and gives no meaning at all for the required group_id.

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?

"Đọc tin nhắn chữ của một nhóm trong khoảng ngày" gives a concrete verb (read), a concrete resource (text messages of one group), and a scope (date range), which is enough to separate it from sibling list_groups. It does not explicitly distinguish itself from search_messages, so it falls short of a 5.

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?

Usage is only implied: it is a date-range read of one group's text messages, and the word "chữ" (text) silently excludes media messages. There is no explicit statement of when to prefer this over search_messages, nor any exclusions or prerequisites.

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