Skip to main content
Glama

Sentiment Analysis

sentiment
Read-onlyIdempotent

Sentiment analysis: classify text as positive, negative, or neutral with a confidence score and an alternate label. Powered by Jev, with an automatic Groq-hosted LLM fallback if Jev is slow or unavailable ("engine":"jev"|"fallback" in the response) - under 4.5s guaranteed. Try GET /sentiment/sample.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to classify, up to 4000 characters.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesThe best-fitting label.
engineYesWhich engine answered: Jev (primary) or the Groq-hosted LLM fallback.
probabilityYesConfidence in `label`, 0 to 1.
x402_receiptNoBilling and provenance receipt for this call.
alternate_labelNoThe second-best label, if any.
alternate_probabilityNoConfidence in `alternate_label`, if known.

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?

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds genuine operational context beyond that: a Jev engine with automatic Groq-hosted LLM fallback, the 'engine' field surfaced in the response, and a sub-4.5s latency guarantee. It stops short of auth or rate-limit details.

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 core classification statement, then engine/fallback behavior, then a sample endpoint pointer. Three sentences with little waste, though the engine/fallback sentence is dense and could be tightened.

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?

An output schema exists, so return values need not be explained, yet the description helpfully flags response fields. For a single-parameter read-only tool with full annotation coverage, this is complete enough; only routing guidance against siblings is missing.

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?

With a single parameter and 100% schema description coverage (text up to 4000 characters), the schema already carries the semantics. The description adds no parameter-level detail, so the baseline of 3 applies.

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 names a specific verb and resource (classify text by sentiment) and enumerates the output labels (positive, negative, neutral) plus confidence and alternate label. This clearly separates it from near-neighbors like toxicity, spam_check, or classify without needing the 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?

Usage is implied by the obvious framing (sentiment classification) but the description never states when to reach for this tool versus siblings such as classify, intent, or toxicity. It provides no exclusions or preconditions, leaving routing to the agent's 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.