Skip to main content
Glama

TradingView-only: news sentiment

market_sentiment

Analyze news-based market sentiment for a ticker using licensed Marketaux scores or local Finviz headline scoring, returning bullish, bearish, and neutral counts plus provider-labeled news consensus.

Instructions

News-based sentiment for a symbol, with no API key required.

Prefers the licensed Marketaux entity sentiment when MARKETAUX_API_TOKEN is set. Without a token it scores Finviz headlines locally (VADER with a financial lexicon), deterministic, offline and free. Either way the payload names the backend in provider/scoring and never fabricates a score when there is no material to score.

The accompanying data.news block always aggregates the latest 10 stories from TradingView/Marketaux, Finviz and Yahoo, naming every item's providers and cross-provider consensus. It does not change which backend computed the sentiment score.

Args: symbol: Ticker. category: News category (used by the Marketaux path only). limit: Headlines to analyse for sentiment.

Returns: Envelope labelled TRADINGVIEW, FINVIZ or NONE whose data carries sentiment_score, sentiment_label, the bullish/bearish/neutral counts, the strongest headlines and the aggregated news block. NONE describes only an unavailable sentiment computation, not an absence of independently fetched news.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "market_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
symbolYes
categoryNoall

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the behavioral burden exceptionally well: it discloses optional authentication, deterministic local offline scoring, provider provenance, refusal to fabricate scores without material, and the fixed latest-10-story aggregation. It also clarifies that news aggregation is independent of the scoring backend and that NONE means sentiment is unavailable, not that news is absent.

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 purpose is front-loaded, and separate paragraphs plus Args and Returns sections make the substantial detail easy to scan. It is somewhat long for a three-parameter tool, and the return-field inventory duplicates information available in the output schema, although the fallback and NONE explanations earn their place.

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?

The definition is complete enough for correct selection and a minimal symbol-only invocation, covering its complex backend fallback, provenance, empty-result behavior, and relationship between sentiment and news. The output schema handles the detailed response shape, leaving only minor gaps such as valid category values and sharper tool-selection boundaries.

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

Parameters4/5

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

Despite 0% schema description coverage, the Args section documents all three parameters: symbol is a ticker, category applies only to the Marketaux path, and limit controls headlines analyzed for sentiment rather than the fixed news aggregation. Accepted category values, ticker or exchange formatting, and limit bounds remain undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence clearly identifies the capability as news-based sentiment for a symbol, and later paragraphs explain the accompanying multi-provider news aggregation. This distinguishes the sentiment-computation purpose in substance, but the description does not explicitly differentiate it from any sibling tool.

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?

It gives clear operating context: no API key is required, Marketaux is preferred when its token is configured, and Finviz/VADER is the fallback. It does not provide explicit when-not guidance or identify an alternative for users who want news retrieval without sentiment analysis.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.