Skip to main content
Glama

HMS x402 Data Origins (RE Data Refinery + Storefront)

sf_sentiment

AI sentiment analysis via OpenRouter — returns label (positive/negative/neutral) and confidence score. Accepts text up to 4K chars. $1.00 per call. Origin: https://storefront-data-hms.ares-hms.workers.dev. Price: $1.00 per call via x402 (USDC on Base).

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

Input Schema

NameRequiredDescriptionDefault
textYesText for sentiment analysis (max 4K chars)
x402_paymentNoOptional. X-PAYMENT header value an x402 client produced after settling this exact origin+params challenge. Omit to first receive the Payment Required challenge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a fair job: it discloses per-call pricing, the x402/USDC-on-Base payment model, the origin URL, and the response shape. It omits failure modes (what happens on payment rejection or over-length input), keeping it 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and return values are front-loaded, which is good, but the pricing is stated twice ('$1.00 per call' and 'Price: $1.00 per call via x402'), making the tail redundant rather than additive.

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 two-parameter tool with no output schema, the description covers the return fields, input bound, cost, and the payment handshake origin. Error behavior is unspecified but the essentials an agent needs to call it are present.

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%, so both parameters are already documented, including the x402_payment header semantics and the 4K limit. The description only repeats the char limit and adds pricing context, which is a baseline-3 contribution.

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 ('AI sentiment analysis') and names the return fields (label with positive/negative/neutral, plus confidence). That distinguishes it from sibling text tools like sf_summarize and sf_text_rewrite, though it does not name those alternatives explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives for classification tasks. The only constraint given is the 4K char input limit, which is an input bound rather than usage 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.