Skip to main content
Glama

get_sentiment

Return the most recent FinBERT-scored news headlines for ticker.

Each headline has a `sentiment_score` in [-1, +1] (positive_prob -
negative_prob), a categorical `sentiment_label`, and a `source_kind`
(always "news").  Costs 1 API credit per 25
headlines actually returned — same billing as GET /v1/sentiment/{ticker}.
An empty result costs nothing.

`limit` is capped at 100.  Only editorial news is served (`sources`
accepts "news" only).  Titles come back reverse-chronological so the
first item is the freshest.

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": {
      "ticker": "<ticker>"
    },
    "name": "get_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
tickerYes
sourcesNonews

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / sources / const
      Added value: +"news"
    • removedInput schema / properties / sources / enum
      Removed value: -[
      -  "news",
      -  "social",
      -  "all"
      -]
  2. Changed1 schema field changed
    • addedInput schema / properties / sources
      Added value: +{
      +  "default": "news",
      +  "enum": [
      +    "news",
      +    "social",
      +    "all"
      +  ],
      +  "title": "Sources",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the billing model (1 credit per 25 returned, empty result free, parity with the REST endpoint), the limit cap of 100, that only editorial news is served, and that results are reverse-chronological. These are exactly the operational facts an agent needs before calling a metered endpoint.

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 key facts (what it returns, cost, caps, ordering) are front-loaded and each sentence carries information. Mild redundancy exists in restating output fields like sentiment_label and source_kind that an output schema already covers, and the REST endpoint comparison is only marginally useful.

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?

For a three-parameter, single-endpoint tool with a rich output schema, the description covers everything an agent needs: scope, cost, limits, source restriction, and ordering. Return-value explanation is largely redundant given the output schema, so nothing material is missing.

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?

Schema coverage is 0%, so the description must compensate, and it explains limit (capped at 100, billed per 25 returned) and sources (accepts 'news' only), confirming the const/enum semantics. It does not document the expected ticker format (e.g., 'AAPL' vs 'BRK.B'), which is the one remaining input ambiguity.

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 and resource ('Return the most recent FinBERT-scored news headlines') scoped to a ticker, which is clearly distinct from the sibling tools get_prices, get_summary, and get_correlation. An agent can identify this as the news-sentiment tool without opening any schema.

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?

It conveys context useful for deciding to call it (news-only coverage, 100-item cap, credit cost) and now-vs-later (empty results are free). However, it never explicitly states when to prefer this over get_summary or how it relates to other sentiment sources, so usage selection is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.