analyze_sentiment
Analyze text sentiment using FinBERT to determine polarity, confidence, and classification for news headlines or articles in quantitative finance contexts.
Instructions
Analyzes the sentiment of a given text using FinBERT on Modal (via Public Endpoint).
Args:
text: Text to analyze (e.g., news headline, article).
Returns:
Dictionary with polarity, confidence, and classification.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |