Skip to main content
Glama

get_news_by_date

Retrieve news articles from selected platforms for a given date. Supports natural language date queries for historical data analysis.

Instructions

获取指定日期的新闻数据,用于历史数据分析和对比

Args: date_query: 日期查询,可选格式: - 自然语言: "今天", "昨天", "前天", "3天前" - 标准日期: "2024-01-15", "2024/01/15" - 默认值: "今天"(节省token) 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
date_queryNo
include_urlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses return format (JSON with title, platform, rank), default behavior (limit=50, date_query defaults to '今天'), and includes important advice on data display (show all unless user requests summary). It does not mention destructive actions or auth, but covers key behavioral aspects well.

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 clear sections (Args, Returns, notes). The note about data display is relevant but somewhat lengthy. Overall, it is efficient and informative, though a bit verbose in the display advice section.

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

Completeness5/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 (mentioned in context), the description does not need to detail return values. It thoroughly explains all input parameters, provides usage advice, and addresses potential AI behavior (avoiding unnecessary summarization). The description is complete for a historical news retrieval tool with good context for agents.

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?

Schema coverage is 0%, so the description fully compensates. Each parameter is explained with examples and context: date_query with natural language and date formats and default, platforms with config reference, limit with default and max and note about possible fewer results, include_url with default and token-saving rationale. This adds significant meaning beyond the 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 '获取指定日期的新闻数据,用于历史数据分析和对比', which specifies the verb (获取), resource (新闻数据), and scope (指定日期). It distinguishes from sibling tools like get_latest_news and search_news by emphasizing historical analysis and date-based retrieval.

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?

The description does not explicitly guide when to use this tool over alternatives like get_latest_news or search_news. While it implies use for historical data, it lacks direct 'when-to-use' or 'when-not-to-use' statements, and no exclusions or alternatives are mentioned.

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