Skip to main content
Glama

Crypto, web, finance and app data tools

Text Sentiment

text_sentiment

Sentiment of English text (reviews, posts, headlines): positive/negative/neutral label, compound score -1..1 and word shares, optionally per sentence with the most positive and negative lines. Rule-based, instant.

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": {
      "text": "<text>"
    },
    "name": "text_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
per_sentenceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/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 does meaningful work: 'Rule-based, instant' tells the agent this is deterministic, lexicon-driven and cheap (no ML inference, no rate concerns), and 'English text' discloses the language constraint. It also describes output shape behavior ('the most positive and negative lines'), though it omits edge cases such as empty input, very long text, or how non-English input degrades.

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?

One dense sentence that front-loads the resource and scope, then enumerates returns, then qualifies the optional mode, then closes with the implementation trait. No filler, no restatement of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema already present, the description need not explain return values yet still names them, and for a 2-parameter read-style utility the remaining gaps are minor. What is missing is input-size expectations and how non-English or empty text is handled, which an agent would want before calling on arbitrary user content.

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 largely does: 'text' is constrained to English, and 'per_sentence' is explained in terms of what it produces ('optionally per sentence with the most positive and negative lines'), which is more informative than the bare boolean title. The scoring units (compound -1..1, word shares) are also clarified, though the default of true and the cost/size implications of enabling it are not mentioned.

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 description names a concrete operation on a concrete resource (sentiment analysis of English text) and spells out the exact outputs: positive/negative/neutral label, compound score -1..1, word shares, and optional per-sentence detail with extreme lines. It does not explicitly differentiate itself from near-neighbors in the sibling list such as text_stats or detect_language, which is the only thing keeping it from a 5.

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?

The parenthetical '(reviews, posts, headlines)' implies the appropriate input domains and the 'English text' qualifier implicitly excludes other languages, so usage is implied rather than stated. There is no explicit 'when to use this instead of detect_language/text_stats' routing, nor a stated condition under which per_sentence should be turned off.

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