generate_market_narrative
Calls the Claude API (`claude-sonnet-4-5`) with a structured prompt containing the coin name, RSI value, and trend classification, requesting a 2-sentence market analysis narrative. The `max_tokens=300` limit is sufficient for the target output length while preventing runaway token consumption in batch runs.
The prompt requests Indonesian language output to match the MCPTrade target audience, but this is trivially changed by modifying the prompt string. For multi-language deployments, parameterize the language instruction and pass it alongside the analysis data. Narrative quality improves significantly when more indicator context is included in the prompt — add MACD state, EMA cross condition, and key S/R levels for richer output.
Ask AI about this skill before installing it.