Skip to main content
Glama
TeleHarvest
by SmtDcs

scrape_chat

Scrape public groups, private channels, and supergroups via an authorized MTProto account, extracting messages, media, and comments from usernames, links, invite URLs, or numeric chat IDs.

Instructions

Scrape ANY public group, private channel, or supergroup via an authorized MTProto account.

target accepts @username, t.me/link, t.me/+invite, or numeric chat ID. Requires an authorized MTProto account (configure once with tgscrape auth add or Web UI Accounts page).

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": {
      "target": "<target>"
    },
    "name": "scrape_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
targetYes
date_toNo
topic_idNo
date_fromNo
account_idNo
incrementalNo
download_mediaNo
resume_backfillNo
include_commentsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description does useful work by disclosing the hard prerequisite of an authorized MTProto account and how to configure it. Beyond that it is silent on the meaningful behavioral traits of a 10-parameter scraping tool: long-running backfill behavior, rate limits, whether incremental runs skip existing messages, or what downloading media implies. The auth prerequisite is real value, but the heavy behavioral burden is largely unmet.

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?

Three short sentences with the core capability and target formats front-loaded, followed by the prerequisite. Nothing is redundant, though the trailing newline/formatting is slightly untidy and the prerequisite could have been folded more tightly.

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?

For a complex, 10-parameter, annotation-free scraping tool, the description covers only the target format and the auth requirement. It never explains what the flags do or how the scraping behaves across dates, topics, and resume/incremental modes, so an agent cannot confidently fill the schema without trial and error. The presence of an output schema excuses it from describing return values, but not from the input-side gaps.

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 10 parameters, so the description must compensate, and it only explains `target` (accepted formats: @username, t.me/link, t.me/+invite, numeric ID). The nine other parameters — limit, date_from, date_to, topic_id, account_id, incremental, download_media, resume_backfill, include_comments — receive no explanation at all, leaving the agent to guess semantics for the most operationally significant options.

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 a specific verb ('Scrape') and a specific resource scope ('ANY public group, private channel, or supergroup'), which is clearly more precise than the bare tool name. It does not explicitly contrast with siblings like scrape_public_channel or scrape_members, so an agent must infer the boundary, but the purpose itself is unambiguous.

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 implied by the phrase 'ANY public group, private channel, or supergroup', suggesting this is the general-purpose chat scraper versus narrower siblings. However, no explicit when-to-use/when-not guidance or named alternatives are given, and there is no discussion of when a user should prefer scrape_public_channel or scrape_members instead.

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