Score the sentiment of text as positive or negative
sentimentSentiment of one text, or up to 20 (texts, a JSON array), each up to 2,000 characters: POSITIVE or NEGATIVE with the model's confidence, from DistilBERT SST-2. Best for short English text. It measures the wording, not whether the statement is true. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | One text, up to 2,000 characters | |
| texts | No | JSON array of up to 20 texts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| model | No | ||
| labels | No | ||
| results | No | ||
| checkedAt | No |