Classify text and sentiment
classify_textSort text into your own labels (support ticket routing, intent, topic, spam, lead quality) or, with no labels, get its sentiment (positive, negative, neutral). Returns the best label, a confidence and a one-line reason. Costs $0.002 per call.
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": "classify_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to classify. | |
| multi | No | Allow more than one label. Default false. | |
| labels | No | Your labels, e.g. ["billing", "bug", "feature request", "other"]. Default: sentiment. |