Skip to main content
Glama

analyze_sentiment

Analyze sentiment and heat trends of news from platforms like Weibo and Zhihu. Use filters to narrow by topic, date range, or platform for targeted insights.

Instructions

分析新闻的情感倾向和热度趋势

Args: topic: 话题关键词(可选) platforms: 平台ID列表,如 ['zhihu', 'weibo', 'douyin'] - 不指定时:使用 config.yaml 中配置的所有平台 - 支持的平台来自 config/config.yaml 的 platforms 配置 - 每个平台都有对应的name字段(如"知乎"、"微博"),方便AI识别 date_range: 【对象类型】 日期范围(可选) - 格式: {"start": "YYYY-MM-DD", "end": "YYYY-MM-DD"} - 示例: {"start": "2025-01-01", "end": "2025-01-07"} - 重要: 必须是对象格式,不能传递整数 limit: 返回新闻数量,默认50,最大100 注意:本工具会对新闻标题进行去重(同一标题在不同平台只保留一次), 因此实际返回数量可能少于请求的 limit 值 sort_by_weight: 是否按热度权重排序,默认True include_url: 是否包含URL链接,默认False(节省token)

Returns: JSON格式的分析结果,包含情感分布、热度趋势和相关新闻

重要:数据展示策略

  • 本工具返回完整的分析结果和新闻列表

  • 默认展示方式:展示完整的分析结果(包括所有新闻)

  • 仅在用户明确要求"总结"或"挑重点"时才进行筛选

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
topicNo
platformsNo
date_rangeNo
include_urlNo
sort_by_weightNo

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 full burden. It discloses important behaviors: deduplication of news titles ('对新闻标题进行去重'), default display strategy (show all vs. summary only on user request), and the date_range format requirement. It does not mention rate limits, authentication needs, or side effects, but for a non-destructive analysis tool, the disclosures are adequate.

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 'Args', 'Returns', and '重要' sections. However, it is somewhat verbose, especially in the platforms description (repeating config file details). Every sentence adds value, but the length could be trimmed by 20-30% without losing clarity.

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 complexity (6 parameters, no annotations, and a comprehensive output schema exists), the description covers most essential aspects: parameter details, return format, and display strategy. It does not explicitly state the return schema structure or error handling, but the output schema is available. The dedup and default display strategy add practical completeness. Sibling tools exist but the description sets clear scope.

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 description coverage is 0%, but the description compensates comprehensively. For each parameter, it provides clear meaning: topic (keyword), platforms (list with source config reference), date_range (object format with example), limit (with dedup note), sort_by_weight (boolean), include_url (token saving). This goes beyond the schema's minimal type definitions.

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's purpose: '分析新闻的情感倾向和热度趋势' (analyze news sentiment and trend). It specifies the resource (news) and the action (analyze sentiment and trend). Among sibling tools like 'analyze_data_insights' and 'analyze_topic_trend', this tool is distinctly focused on sentiment and heat trends, making it distinguishable.

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?

The description provides detailed usage guidance for parameters (e.g., platforms default to config, date_range must be an object). However, it does not explicitly state when to use this tool versus alternatives like 'generate_summary_report' or 'get_latest_news'. The '重要' section touches on display strategy but not on when to choose this tool over siblings. Lacks explicit when/when-not/alternatives.

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