We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/osamadev/financial_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
context_builder.py•463 B
from typing import List
def build_final_prompt(user_query: str, summaries: List[dict]) -> str:
context_blocks = "\n\n".join([
f"[{item['title']}]\n{item['summary']} (Sentiment: {item['sentiment']})" for item in summaries
])
return f"""You are a real-time financial assistant. Use the latest news context to answer:
🔍 User Query: {user_query}
🗞️ Market Context:
{context_blocks}
📊 Provide an insightful, market-aware answer.
"""