Skip to main content
Glama

get_social_sentiment

Analyze social media sentiment for NSE stocks from Reddit and Twitter. Get bullish/bearish percentages, a BUY/HOLD/SELL signal, and key themes.

Instructions

Analyze social media sentiment for any NSE stock using Reddit + Twitter.

Scrapes up to limit posts from r/IndiaInvestments, r/DalalStreetTalks, and Twitter/X, classifies each as bullish/bearish/neutral, extracts key themes, and returns a BUY/HOLD/SELL signal with confidence level.

Falls back to yFinance news headlines if social APIs are not configured.

Args: symbol: NSE stock symbol (e.g. RELIANCE, TCS, INFY) limit: Max posts to analyze (default 100, max 200)

Returns JSON with: - bullish_pct / bearish_pct / neutral_pct - signal (BUY / HOLD / SELL) - confidence (low / medium / high) - key_themes: top recurring topics in the posts - summary: single-line readable summary - sample_posts: top 5 posts with sentiment tag

Setup (optional, for real social data): pip install praw tweepy REDDIT_CLIENT_ID=... REDDIT_CLIENT_SECRET=... TWITTER_BEARER_TOKEN=...

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
symbolYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description explains scraping, classification, signal generation, and fallback behavior. Does not discuss rate limits or potential errors, but covers main behavioral aspects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with front-loaded summary, but includes lengthy setup instructions; could be slightly more concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers input, output, fallback, and setup. Lacks details on error handling or invalid inputs, but overall sufficient for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but description explains symbol as NSE stock symbol and limit with default 100 and max 200, adding significant value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it analyzes social media sentiment for NSE stocks using Reddit and Twitter, specifies subreddits and fallback, and distinguishes from siblings like market_news.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage for sentiment analysis but lacks explicit when-to-use alternatives. Mentions fallback to yFinance if social APIs not configured, providing context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/finstacklabs/finstack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server