Skip to main content
Glama
AmyYingTang

mcp-news-briefing

by AmyYingTang

briefing_stock_history_get

Retrieve a stock's historical news sentiment trend by ticker. Returns daily sentiment scores, closing prices, and divergence detection for customizable periods up to 90 days.

Instructions

查看某只股票的历史情绪趋势。用户说「AAPL 最近一周情况怎么样」「看看苹果的趋势」等时调用。 返回每日情绪评分 + 收盘价 + 涨跌幅,以及背离检测结果。

返回的 data_status 标记每天的数据状态:

  • complete: 有完整快照,直接使用

  • raw_only: 有原始抓取数据但没有快照。先调用 briefing_stock_digest(date=该日期) 做分析,再调用 briefing_stock_history_record 写入快照,然后继续

  • missing: 什么都没有,标记为数据缺失,在趋势分析中注明 补全完成后,再做整体的趋势分析和背离检测。

趋势呈现的语气约束:

  • 背离分析只描述现象,不做预测。说"新闻情绪与股价走势方向不一致",不说"回调风险在累积"、"可能即将反转"

  • 列出可能的解释时用"可能的原因包括:",不用"这说明..."、"这意味着..."

  • 不使用"健康"、"危险"、"安全"等暗示投资判断的词

  • 不说"走势良好"、"势头强劲"、"令人担忧",只呈现数据("过去 5 天新闻情绪均值 +0.8,股价累计 -2.3%")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo查看最近几天(默认7,最大90)
tokenNo用户token或用户名。留空则自动使用默认身份。
tickerYes股票代码,如 AAPL 或 CBA.AX
Behavior5/5

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

With no annotations provided, the description carries the full burden and covers data_status semantics, required follow-up actions for incomplete snapshots, and strict output tone constraints (no predictions, no judgement words). It makes the tool's non-obvious behavior explicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but appropriately structured with a purpose-first opening, example triggers, a bulleted data-status contract, and a clear section on tone constraints. Every segment adds necessary operational detail.

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 no output schema, the description explains all key return values and behavior, including the raw_only/missing recovery workflow, so an agent can invoke the tool and handle incomplete data correctly. The only minor gap is the exact shape of the divergence detection result, but the workflow is sufficiently complete.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already defines ticker, days, and token. The description only maps '最近一周' to the days parameter and does not add materially new syntax or format details 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 opens with a specific verb+resource phrase '查看某只股票的历史情绪趋势' and specifies the returned data (daily sentiment score, close price, change, divergence detection). It provides user trigger examples, which clearly differentiates this historical trend view from sibling tools like stock_digest or history_record.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly defines when to call (user asks 'AAPL 最近一周情况怎么样', etc.) and includes a conditional workflow for raw_only/missing data that names the exact alternative tools to invoke (briefing_stock_digest and briefing_stock_history_record). This is strong when-to-use guidance with concrete 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/AmyYingTang/mcp-news-briefing'

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