Skip to main content
Glama

ai_sentiment

Read-only

AI sentiment — Classify text sentiment as POSITIVE, NEGATIVE or NEUTRAL via Workers AI. Price: $0.005 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": {
      "text": "<text>"
    },
    "name": "ai_sentiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYestext to analyze

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely non-derivable behavior: it runs via Workers AI and costs $0.005 USDC on Base through x402, which is important payment/authorization context for an agent. It stops short of describing throughput limits or input-size constraints.

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 tight sentence plus a pricing clause, with the capability stated first and the cost constraint second. No filler, no redundancy with 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?

For a one-parameter read-only classifier, the definition covers purpose, provider, payment cost, and the exact output labels (compensating for the absent output schema). The only real gap is the lack of guidance relative to the similar ai_classify sibling.

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?

There is a single required parameter with 100% schema description coverage ('text to analyze'), so the schema carries the load. The description only reinforces the domain (the text is analyzed for sentiment), adding no format, length, or encoding guidance. 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?

States a specific verb ('Classify') and resource ('text sentiment') and even names the output label set (POSITIVE, NEGATIVE, NEUTRAL), so the agent knows exactly what comes back. It does not distinguish itself from the neighboring generic 'ai_classify' tool, so an agent could still hesitate between them.

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 only implied by the phrase 'sentiment' — the description never says when to pick this over ai_classify or ai_extract, nor any exclusions such as language or text-length limits. A reader can infer the use case but gets no explicit routing guidance.

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