Skip to main content
Glama

get_news_by_date

Retrieve news for specific dates or natural language ranges to analyze historical trends, compare platforms, and optionally include URLs.

Instructions

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

Args: date_range: 日期范围,支持多种格式: - 范围对象: {"start": "2025-01-01", "end": "2025-01-07"} - 自然语言: "今天", "昨天", "本周", "最近7天" - 单日字符串: "2025-01-15" - 默认值: "今天" platforms: 平台ID列表,如 ['zhihu', 'weibo'],不指定则使用所有平台 limit: 返回条数限制,默认50,最大1000 include_url: 是否包含URL链接,默认False(节省token)

Returns: JSON格式的新闻列表,包含标题、平台、排名等信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
platformsNo
date_rangeNo
include_urlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

没有任何注释,描述承担了行为透明度的全部责任。描述揭示了返回值结构(标题、平台、排名)、参数默认值(limit=50,include_url=false)和date_range的多种输入格式,但未说明任何副作用、权限要求或错误处理。此外,未明确声明是只读操作(尽管明显)。在无注释的情况下,提供的信息较充分但仍有缺口。

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?

描述开头一句话给出核心用途,随后用结构化列表逐项说明参数,末尾说明返回格式。信息密度高,无冗余。虽略长但每句话都有价值,且前部加载了关键信息。

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?

工具涉及4个参数,有输出schema,描述本身包含了返回字段(标题、平台、排名),基本覆盖了调用所需的信息。但没有提供示例调用或错误场景,对于较为复杂的date_range格式虽强制说明了类型未给具体示例,但已足够。

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描述覆盖率为0%,描述完美补充了所有4个参数的具体语义:date_range的多种格式、platforms的用途、limit的默认和最大值、include_url的目的。全部参数都获得清晰说明,远超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?

描述明确说明“获取指定日期的新闻数据,用于历史数据分析和对比”,精确地指特定时间范围的新闻检索,与兄弟工具如get_latest_news、get_trending_topics等形成清晰区分,帮助代理识别工具的独特用途。

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?

描述暗示了历史分析的场景,但未明确说明与其他搜索/报告工具(如search_news、aggregate_news)的边界,也未提及何时不使用该工具。虽然用途清晰有余,但缺乏排除性指导,未达到4分。

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

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