Skip to main content
Glama

get_latest_news

Retrieve recently crawled news data from multiple platforms to quickly understand current hot topics. Specify platforms, result count, and whether to include URLs.

Instructions

获取最新一批爬取的新闻数据,快速了解当前热点

Args: platforms: 平台ID列表,如 ['zhihu', 'weibo', 'douyin'] - 不指定时:使用 config.yaml 中配置的所有平台 - 支持的平台来自 config/config.yaml 的 platforms 配置 - 每个平台都有对应的name字段(如"知乎"、"微博"),方便AI识别 limit: 返回条数限制,默认50,最大1000 注意:实际返回数量可能少于请求值,取决于当前可用的新闻总数 include_url: 是否包含URL链接,默认False(节省token)

Returns: JSON格式的新闻列表

重要:数据展示建议 本工具会返回完整的新闻列表(通常50条)给你。但请注意:

  • 工具返回:完整的50条数据 ✅

  • 建议展示:向用户展示全部数据,除非用户明确要求总结

  • 用户期望:用户可能需要完整数据,请谨慎总结

何时可以总结

  • 用户明确说"给我总结一下"或"挑重点说"

  • 数据量超过100条时,可先展示部分并询问是否查看全部

注意:如果用户询问"为什么只显示了部分",说明他们需要完整数据

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
platformsNo
include_urlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Describes return format (JSON), default limit, max limit, actual count may be less, and token-saving option (include_url). No annotations exist, so the description carries the burden; it covers key behavioral traits well. Missing explicit idempotency or side-effect statements but still strong.

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?

Purpose stated upfront; parameter descriptions are clear. The long display-suggestions section adds value for the agent but could be more concise. Overall well-structured and front-loaded.

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?

Covers parameters, defaults, and usage advice. With an output schema present, the missing return-value description is mitigated. Lacks error handling and sorting details but sufficient for a simple read tool.

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?

With 0% schema description coverage, the description fully compensates: explains platforms as list with defaults from config, gives examples (['zhihu', 'weibo', 'douyin']), clarifies limit behavior (max 1000, actual may be less), and explains include_url's purpose. Adds significant value beyond the schema.

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?

Clearly states the tool gets the latest batch of crawled news ("获取最新一批爬取的新闻数据") and implies it's for current hot topics. However, it doesn't explicitly differentiate from siblings like get_news_by_date or get_trending_topics, which could cause confusion.

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 on when to use this tool vs. alternatives. Lacks explicit context like 'Use this for unfiltered latest news; for date-filtered news, use get_news_by_date', leaving the agent to infer usage from the name alone.

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/lizouzt/TrendRadar'

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