Skip to main content
Glama

Agent Data Tools: Web, documents and search

Brand sentiment, news sentiment: headlines with sentiment scores

pack_news_sentiment
Read-only

Brand sentiment from the news on a topic in one call: the latest headlines from the Brave News index (title, URL, publisher, age), each with a positive or negative score from a DistilBERT model, and the balance across them. Up to 10 articles from the past day, week or month. Not a market signal. Results are for the caller's immediate use only (Brave API terms). Use for a market mood check, brand monitoring or a news brief. Example: q=bitcoin. Price $0.01/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "q": "<q>"
    },
    "name": "pack_news_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesNews topic, at most 400 characters
countNoNumber of articles (1-10, default 5)
freshnessNoOnly articles from the past day, week or month (default: week)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +10
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations: cost of $0.01/call via x402 USDC or a card key, failed calls free, and that repeats are charged — which explains the idempotentHint=false flag. It also carries a licensing constraint ('for the caller's immediate use only'). However, with readOnlyHint=true already declaring the read-only profile, the remaining value is mostly billing and terms detail rather than operational behavior like rate limits or result ordering.

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 payload and return fields are front-loaded in the first sentence, followed by limits, disclaimers, and pricing. Dense and mostly earning its place, though pricing and licensing terms sit in the middle of the sentence flow rather than being clearly separated.

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, read-only, open-world tool with no output schema, the description does what is needed: it enumerates return fields, caps results at 10, defines the lookback options, and discloses cost and terms. An agent can call it correctly and predict the response shape without further information.

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 coverage is 100%, so q, count, and freshness are already fully documented in the schema, including the 1-10 range and the week default. The description only restates those bounds ('Up to 10 articles from the past day, week or month') and adds an example value, so baseline 3 applies.

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?

Names a specific resource and output shape: 'Brand sentiment from the news on a topic in one call' with headlines carrying title, URL, publisher, age plus a DistilBERT positive/negative score and aggregate balance. It also carves out scope with 'Not a market signal,' though it never explicitly contrasts itself with the sibling tools 'news' or 'ai_sentiment', leaving that differentiation implicit.

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?

Gives three concrete use cases ('market mood check, brand monitoring or a news brief'), a negative boundary ('Not a market signal'), and a worked example (q=bitcoin). It stops short of naming an alternative tool or stating when a caller should prefer one, so the routing guidance is contextual rather than explicit.

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.

Resources