Skip to main content
Glama

get_sentiment_forecasts

Read-onlyIdempotent

Get multi-model consensus forecasts for stock price direction and probability across 1-day to 3-month horizons, driven by sentiment analysis.

Instructions

未來走勢預測 / forecast / 未來價格推估 — 從輿情服務取得多模型對未來 1d / 5d / 10d / 1m / 3m horizon 的預測共識(含情緒驅動的方向 / 機率 / 置信度)。當使用者問「下週走勢」「未來表現」「會漲還是會跌」「下個月怎麼看」這類預測問題時優先用此工具。需後端 sentiment 服務啟用;未啟用時會回 enabled:false。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes股票代號
marketNo市場 TW 或 US,預設 TW
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds valuable behavioral context: it sources from a sentiment service, uses multiple models, and returns enabled:false if the service is disabled. No contradictions with annotations.

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 concise but includes all necessary information: purpose, usage guidance, prerequisites, and return description. It is front-loaded with the key purpose. Could be slightly restructured for clarity, but not overly verbose.

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 tool has no output schema, the description adequately explains the return value: consensus forecasts including direction, probability, and confidence for multiple horizons. It also covers the service dependency and error condition (enabled:false), making it complete for a read operation.

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 documents both parameters (code and market). The description does not add any additional meaning or examples beyond what the schema provides.

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 it retrieves multi-model consensus forecasts for specific horizons (1d/5d/10d/1m/3m) with sentiment-driven direction, probability, and confidence. It uniquely identifies the tool as a future prediction tool, distinguishing it from sibling tools like get_stock_sentiment_v2.

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

Usage Guidelines4/5

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

The description explicitly lists example queries that should use this tool (e.g., 'next week's trend', 'future performance') and states priority over other tools. It also notes the prerequisite of backend sentiment service and the fallback response. However, it does not name alternatives or explicitly state when not to use.

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/kevinlin49361128-stack/stock-analyzer-mcp'

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