Skip to main content
Glama
ttm-telegram

ttm-telegram

by toantranmei

Search Messages

search_messages

Search Telegram group messages by keyword to retrieve up to 200 matching results from a specified group ID.

Instructions

Tìm tin nhắn trong nhóm theo từ khóa. limit tối đa 200.

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>",
      "keyword": "<keyword>"
    },
    "name": "search_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
keywordYes
group_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It adds one useful constraint (limit tối đa 200), but says nothing about required permissions or membership, matching semantics (substring vs full-text vs case/diacritic sensitivity), ordering of results, or pagination — all material for a search tool.

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?

Two short sentences with the core purpose front-loaded and no filler. The brevity is efficient rather than padded, though the second sentence is a fragment that only conveys the limit cap.

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

Completeness2/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 not be explained. However, for a three-parameter, no-annotation search tool, the definition leaves group_id undefined and offers no behavioral context or sibling differentiation, so an agent cannot call it confidently in edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate. It clarifies keyword (theo từ khóa) and caps limit at 200, but group_id is never explained and the default of 100 is not addressed; roughly one third of the parameters gain no meaning from the text.

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 Vietnamese description names a specific verb and resource ('Tìm tin nhắn' – search messages) and scopes it to 'trong nhóm theo từ khóa' (within a group, by keyword). An agent can tell what it does, but nothing distinguishes it from the sibling get_messages, which plausibly returns messages without a keyword filter.

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?

Implicitly signals use when a keyword lookup is wanted, but there is no explicit when-to-use versus get_messages or list_groups, and no stated exclusions, prerequisites, or fallback behavior when a search returns nothing.

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