Skip to main content
Glama

ai_sentiment_batch

Read-only

Batch sentiment + aspects — Sentiment for up to 25 texts in one call (reviews, survey answers, tickets, social posts). texts = items separated by | or newlines, or a JSON array. Per item: positive / negative / neutral / mixed, a score from -1 to 1 (forced to agree with the label offline), an emotion word and up to 3 aspects with their own sentiment (aspects=false to skip; topic= to focus). Roll-up: counts, average score, net sentiment index (positive minus negative, per 100), overall verdict, the most negative and most positive items, and the most-mentioned aspects with positive/negative split. Workers AI llama-3.3-70b. Price: $0.01 USDC (Base, via x402).

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": "ai_sentiment_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYese.g. Fast shipping and great quality|Support never answered my emails|It is ok I guess

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly, non-destructive, open-world), and the description adds real behavioral context beyond them: the underlying model (Workers AI llama-3.3-70b), the 25-item cap, the fact that scores are forced to agree with labels offline, and a paywall ('$0.01 USDC on Base, via x402'). It does not discuss failure behavior, timeouts, or per-item error handling, so it stops short of a 5.

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?

Front-loaded with the verb and resource, then organized into input format, per-item output, and roll-up output. It is dense and information-rich, with only mild redundancy (the title-ish restatement 'Batch sentiment + aspects — Sentiment for...' and the parenthetical 'positive minus negative, per 100').

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 no output schema, the description does the necessary work by enumerating both per-item fields (label, score, emotion, aspects) and roll-up fields (counts, average, net index, verdict, extremes, top aspects). Pricing and provider details round it out. The only gap is the undocumented `aspects`/`topic` options that appear here but not in the schema.

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% and there is only one parameter, so the schema already carries the baseline. The description adds genuine format detail ('|' or newline separated, or a JSON array) but also references `aspects=false` and `topic=` — knobs that do not exist in the input schema, which is potentially misleading rather than clarifying.

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?

States a specific verb+resource ('Batch sentiment + aspects') and immediately quantifies scope ('up to 25 texts in one call'), plus example inputs (reviews, survey answers, tickets, social posts). It implies the batch-vs-single distinction through 'in one call' but never names the sibling ai_sentiment as the single-item alternative, so differentiation is inferred rather than stated.

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 example input domains (reviews, survey answers, tickets, social posts) imply when the tool fits, and 'up to 25 texts' sets a scale boundary. However, there is no explicit when-to-use versus when-not guidance and no named alternative for single-item or larger-volume work, leaving the routing decision to inference.

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