Skip to main content
Glama

Sentiment analysis

sentiment
Read-only

Scores up to 30 texts as positive, negative, or neutral, returning a -1 to +1 score and an average for reviews, tweets, tickets, or headlines.

Instructions

Fast positive / negative / neutral sentiment for up to 30 texts (5,000 characters in all) at once (reviews, tweets, support tickets, headlines), with a score from -1 (very negative) to +1 (very positive) and an average across all texts. Costs $0.001 per call.

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": {
      "texts": "<texts>"
    },
    "name": "sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYesTexts to score, up to 30 and 5,000 characters in all, e.g. ["Love it!", "Shipping took forever."].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

The sole annotation (readOnlyHint=true) already establishes safety, yet the description still adds real behavior: output scale from -1 to +1, an average across all texts, and a per-call price of $0.001. Cost disclosure is exactly the kind of operational context annotations cannot convey. It stops short of describing error handling or throughput limits.

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 sentence, front-loaded with the capability and capacity, then the return value, then the cost. Every clause carries information an agent would otherwise have to guess; nothing is redundant filler.

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?

There is no output schema, so the description must carry the return-value burden, and it does: it states the label set, the numeric range, and that an average is returned. Combined with the cost and batch limits, an agent has everything needed to call this and interpret the result.

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% and the single 'texts' parameter already documents the 30-item / 5,000-character bounds with an example array. The description restates the same limits without adding format or content guidance, so the baseline of 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?

The description names the resource (texts), the classification produced (positive / negative / neutral), the batching limits (30 texts, 5,000 characters), and representative inputs (reviews, tweets, support tickets, headlines). That is far more specific than the title 'Sentiment analysis', though it never explicitly distinguishes itself from sentiment-adjacent siblings such as classify_text.

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?

Usage is implied through the listed example input types (reviews, tweets, support tickets, headlines), which tells an agent what kind of content this tool is for. There is no explicit when-to-use / when-not-to-use statement and no routing to or away from alternatives such as classify_text or ask_llm.

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