Skip to main content
Glama
xhh-im

TrendRadar

by xhh-im

trigger_crawl

Manually start a crawl of hot topics from platforms like Zhihu, Weibo, or Douyin. Save results locally if needed, and receive JSON output with news data.

Instructions

手动触发一次爬取任务(可选持久化)

Args: platforms: 指定平台ID列表,如 ['zhihu', 'weibo', 'douyin'] - 不指定时:使用 config.yaml 中配置的所有平台 - 支持的平台来自 config/config.yaml 的 platforms 配置 - 每个平台都有对应的name字段(如"知乎"、"微博"),方便AI识别 - 注意:失败的平台会在返回结果的 failed_platforms 字段中列出 save_to_local: 是否保存到本地 output 目录,默认 False include_url: 是否包含URL链接,默认False(节省token)

Returns: JSON格式的任务状态信息,包含: - platforms: 成功爬取的平台列表 - failed_platforms: 失败的平台列表(如有) - total_news: 爬取的新闻总数 - data: 新闻数据

Examples: - 临时爬取: trigger_crawl(platforms=['zhihu']) - 爬取并保存: trigger_crawl(platforms=['weibo'], save_to_local=True) - 使用默认平台: trigger_crawl() # 爬取config.yaml中配置的所有平台

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformsNo
include_urlNo
save_to_localNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must carry the burden. It explains defaults, parameter effects, and return fields including failed_platforms. However, it does not disclose potential side effects (e.g., overwriting files during save), authentication requirements, or rate limits, which would improve transparency for a tool that may have persistent effects.

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 description is well-structured with sections (args, returns, examples) and uses bullets for clarity. It is front-loaded with the purpose. While comprehensive, it could be slightly trimmed without losing meaning, but overall it is efficient and easy to parse.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema (not shown but indicated), the description adequately explains return values. It covers core functionality, default behaviors, and error reporting. Missing details like authentication or configuration file paths are acceptable for a mechanism description, but the tool is contextualized within the sibling set.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description fully compensates. It explains each parameter in detail: platforms list with name mapping, save_to_local default False, include_url default False, and provides real-world examples. This adds significant value beyond the raw JSON schema.

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?

The description clearly states the tool triggers a crawl task manually, with optional persistence. It specifies the resource (crawl task) and actions (trigger, optionally save). It distinguishes from sibling analysis tools by being the only one that initiates data collection.

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?

The description provides examples for different use cases (specified platforms, with save, default platforms) and explains default behavior. It mentions that failed platforms are returned. However, it does not explicitly state when not to use this tool or compare to alternatives, though sibling tools are a different category.

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/xhh-im/TrendRadar'

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