Twitter Sentiment
sentiment_twitterSearches public X Posts from the last 7 days using X search syntax (keywords, phrases, hashtags, cashtags, or operators such as from:handle). Returns engagement, views and direct links; sorted by relevance unless latest=true. Results are capped at 10 Posts.
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": {
"query": "<query>"
},
"name": "sentiment_twitter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max Posts to return (1-10). Defaults to 5. | |
| query | Yes | X recent-search query (keywords, phrases, hashtags, cashtags, or operators), e.g. "$BTC", "bitcoin ETF", or "from:handle BTC". Self-serve query limit: 512 characters. | |
| latest | No | Return the newest Posts instead of top relevance. Defaults to false. | |
| minLikes | No | Only Posts with at least this many likes. Defaults to 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tweets | No |