analyze_sentiment
Sentiment and opinion analysis for customer reviews, messages and social media posts written in spoken Arabic dialects (Moroccan Darija, Egyptian, Gulf, Levantine and others), in Arabic script, Arabizi or mixed with French/English. Returns overall sentiment, a score from -1 to 1, the aspects mentioned (price, delivery, quality, service...) with their sentiment, the detected dialect and a one-line English summary. Built for review monitoring, social listening and customer support triage.
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": "analyze_sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Review, comment or message (max 4000 characters). | |
| dialect | No | Dialect of the text, if known. Default: auto-detect. |