UNPKG

@spaik/mcp-server-roi

Version:

MCP server for AI ROI prediction and tracking with Monte Carlo simulations

684 lines (619 loc) 18.4 kB
# MCP Server ROI - Use Cases & Examples This document provides comprehensive examples of how to use the MCP Server ROI with the new v1.2.0 features, including natural language support, simplified inputs, and helpful error handling. ## Table of Contents 1. [Natural Language Examples](#natural-language-examples) 2. [Simplified JSON Examples](#simplified-json-examples) 3. [Traditional Examples](#traditional-examples) 4. [Error Handling Examples](#error-handling-examples) 5. [Utility Tool Examples](#utility-tool-examples) 6. [Industry-Specific Examples](#industry-specific-examples) 7. [Response Examples](#response-examples) ## Natural Language Examples ### predict_roi - Natural Language #### Input ```json { "natural_language_input": "We're ACME Retail and need to automate customer service. Currently handling 10,000 emails per month, each takes 15 minutes and costs us $5 in labor. We have a budget of $150k and need this done in 6 months." } ``` #### Output (Simplified) ```json { "executive_summary": { "headline": "Customer Service Automation will deliver 425% ROI in 2 years", "confidence": "high", "key_insight": "Email automation alone will save $37,500 monthly", "primary_metric": "8-month payback period" }, "summary": { "total_investment": 150000, "expected_roi": 425.5, "payback_period_months": 8, "net_present_value": 487500, "break_even_date": "2026-03-01" }, "recommendations": { "next_action": "Start with email categorization pilot", "timeline": "Begin pilot in 2 weeks, full rollout in 3 months", "success_criteria": [ "90% email auto-response accuracy", "< 1 hour average response time", "85% customer satisfaction score" ] } } ``` ### compare_projects - Natural Language #### Input ```json { "natural_language_input": "Compare three projects for our hospital: automating patient intake forms, AI-powered diagnostic assistance, and predictive scheduling for staff" } ``` #### Output (Simplified) ```json { "executive_summary": { "headline": "Patient intake automation offers fastest ROI at 18 months", "winner": "Patient Intake Automation", "key_differentiator": "Low risk with immediate operational benefits" }, "comparison": { "projects": [ { "name": "Patient Intake Automation", "roi": 285, "payback_months": 18, "risk_score": 3.2, "rank": 1 }, { "name": "AI Diagnostic Assistant", "roi": 420, "payback_months": 36, "risk_score": 7.8, "rank": 2 }, { "name": "Predictive Staff Scheduling", "roi": 195, "payback_months": 24, "risk_score": 4.5, "rank": 3 } ] }, "ml_insights": { "synergy_opportunity": "Combining intake automation with diagnostics creates data pipeline", "success_pattern": "Hospitals typically see 15% additional savings when implementing multiple systems" } } ``` ### quick_assessment - Natural Language #### Input ```json { "natural_language_input": "Small law firm, 5 attorneys, spending 3 hours daily on document review. Each hour costs $200. Can AI help?", "enable_voice_mode": true } ``` #### Output (with Voice) ```json { "summary": { "totalMonthlyBenefit": 26000, "estimatedROI": 520, "paybackPeriodMonths": 4, "confidenceScore": 0.87 }, "voiceOutput": "Based on my analysis, implementing AI document review for your law firm could save approximately 26 thousand dollars per month. With 5 attorneys each saving 3 hours daily at 200 dollars per hour, the system would pay for itself in just 4 months. This represents a 520 percent return on investment, which is excellent for a legal tech implementation.", "recommendations": { "immediate": [ "Start with contract review automation", "Pilot with one practice area first" ], "shortTerm": [ "Expand to discovery document analysis", "Implement citation checking" ] } } ``` ## Simplified JSON Examples ### predict_roi - Simplified Format #### Input ```json { "client": "TechStart Inc", "project": "DevOps Automation", "industry": "tech", "budget": "$75k", "timeline": "4 months", "description": "Automate deployment pipeline and monitoring" } ``` #### Output ```json { "project_id": "550e8400-e29b-41d4-a716-446655440000", "summary": { "total_investment": 75000, "expected_roi": 380, "payback_period_months": 6, "net_present_value": 210000 }, "insights": { "primary": [ "Deployment automation reduces release time by 85%", "Monitoring automation prevents 90% of production incidents", "Developer productivity increases by 40%" ] } } ``` ### compare_projects - Simplified Format #### Input ```json { "projects": ["DevOps Pipeline", "Security Automation", "Data Analytics Platform"], "focus": "risk and timeline" } ``` #### Output ```json { "recommended_order": [ { "project": "Security Automation", "reason": "Lowest risk with compliance benefits" }, { "project": "DevOps Pipeline", "reason": "Foundation for other improvements" }, { "project": "Data Analytics Platform", "reason": "Highest ROI but requires mature infrastructure" } ], "insights": { "risk_analysis": "Security automation has proven patterns with 90% success rate", "timeline_optimization": "Parallel implementation possible for first two projects" } } ``` ## Traditional Examples ### predict_roi - Full Detail #### Input ```json { "organization_id": "org_123", "project": { "client_name": "Global Manufacturing Corp", "project_name": "Predictive Maintenance System", "industry": "manufacturing", "description": "AI-powered equipment failure prediction" }, "use_cases": [ { "name": "Equipment Monitoring", "category": "operations", "current_state": { "process_time_hours": 4, "cost_per_transaction": 500, "error_rate": 0.15, "volume_per_month": 200, "fte_required": 8 }, "future_state": { "automation_percentage": 0.9, "time_reduction_percentage": 0.8, "error_reduction_percentage": 0.95, "scalability_factor": 3.0 }, "implementation": { "development_hours": 800, "complexity_score": 7, "dependencies": ["IoT Sensors", "Data Platform"], "risk_factors": [ { "name": "Sensor Integration", "probability": 0.3, "impact": "medium" } ] } } ], "implementation_costs": { "software_licenses": 100000, "development_hours": 1200, "training_costs": 30000, "infrastructure": 50000, "ongoing_monthly": 8000 }, "timeline_months": 18, "confidence_level": 0.9 } ``` #### Output ```json { "project_id": "550e8400-e29b-41d4-a716-446655440001", "projection_id": "660e8400-e29b-41d4-a716-446655440002", "summary": { "total_investment": 276000, "expected_roi": 520, "payback_period_months": 11, "net_present_value": 1158000, "break_even_date": "2026-12-15" }, "financial_metrics": { "conservative": { "five_year_roi": 380, "npv": 850000, "irr": 0.42 }, "expected": { "five_year_roi": 520, "npv": 1158000, "irr": 0.58 }, "optimistic": { "five_year_roi": 680, "npv": 1520000, "irr": 0.71 } }, "use_cases": [ { "name": "Equipment Monitoring", "category": "operations", "monthly_benefit": 76000 } ] } ``` ## Error Handling Examples ### Missing Required Field #### Input ```json { "project": "Customer Service Bot", "budget": "$50k" } ``` #### Error Response ```json { "error": "Missing required fields", "message": "Your request is missing some required information.", "missing_fields": [ { "field": "client_name", "description": "The name of the client or company", "example": "ACME Corp" }, { "field": "industry", "description": "The industry sector", "example": "retail", "valid_values": ["financial_services", "healthcare", "retail", "manufacturing", "technology", "education", "government", "other"] } ], "suggestion": "Add the missing fields or use natural_language_input instead", "example": { "client": "Your Company", "project": "Customer Service Bot", "industry": "retail", "budget": "$50k" } } ``` ### Invalid Enum Value #### Input ```json { "client": "ACME Corp", "project": "Fraud Detection", "industry": "finance", "budget": "$100k" } ``` #### Error Response ```json { "error": "Invalid industry value", "message": "The industry 'finance' is not recognized.", "suggestion": "Did you mean 'financial_services'?", "valid_values": ["financial_services", "healthcare", "retail", "manufacturing", "technology", "education", "government", "other"], "example": { "industry": "financial_services" }, "auto_correction_available": true, "corrected_input": { "client": "ACME Corp", "project": "Fraud Detection", "industry": "financial_services", "budget": "$100k" } } ``` ### Invalid Format #### Input ```json { "client": "Tech Co", "project": "AI Assistant", "industry": "technology", "budget": "100000 dollars", "confidence_level": "95%" } ``` #### Error Response ```json { "error": "Invalid format for numeric fields", "fields_with_issues": [ { "field": "confidence_level", "current_value": "95%", "issue": "Should be a decimal between 0 and 1", "corrected_value": 0.95, "suggestion": "Use 0.95 instead of 95%" } ], "auto_corrected": { "budget": 100000 }, "note": "Budget was automatically parsed from '100000 dollars' to 100000" } ``` ## Utility Tool Examples ### get_examples #### Input ```json { "tool_name": "predict_roi", "category": "healthcare" } ``` #### Output ```json { "tool": "predict_roi", "category": "healthcare", "examples": [ { "title": "Hospital Patient Records Automation", "description": "Automate patient intake and records management", "input": { "natural_language_input": "Regional Medical Center processes 5000 patient admissions monthly. Each takes 45 minutes of staff time at $35/hour. Looking to automate intake forms and initial data entry. Budget is $200k." }, "key_points": [ "Healthcare industry automatically applies HIPAA compliance costs", "Standard implementation includes data validation and error checking", "ROI typically 300-400% for healthcare automation" ] }, { "title": "Medical Imaging Analysis", "input": { "client": "City Hospital", "project": "AI Radiology Assistant", "industry": "healthcare", "budget": "$500k", "timeline": "12 months" } } ] } ``` ### help #### Input ```json { "query": "What's the difference between predict_roi and quick_assessment?" } ``` #### Output ```json { "question": "What's the difference between predict_roi and quick_assessment?", "answer": { "summary": "predict_roi provides comprehensive analysis with Monte Carlo simulations, while quick_assessment offers rapid estimates using industry benchmarks", "comparison": { "predict_roi": { "purpose": "Detailed ROI analysis for formal proposals", "features": ["Monte Carlo simulation", "5-year projections", "Risk analysis", "Multiple use cases"], "when_to_use": "Executive presentations, funding requests, detailed planning", "time_to_complete": "2-3 seconds" }, "quick_assessment": { "purpose": "Rapid feasibility checks and initial estimates", "features": ["Industry benchmarks", "Instant results", "Voice output", "Scenario generation"], "when_to_use": "Initial conversations, quick validations, exploratory discussions", "time_to_complete": "< 1 second" } } }, "recommendation": "Start with quick_assessment for initial validation, then use predict_roi for detailed analysis", "examples": { "quick_assessment": { "natural_language_input": "We process 1000 invoices monthly, each takes 20 minutes. Can AI help?" }, "predict_roi": { "client": "ACME Corp", "project": "Invoice Processing Automation", "industry": "financial_services", "budget": "$75k" } } } ``` ## Industry-Specific Examples ### Healthcare - Clinical Documentation #### Input ```json { "natural_language_input": "Mountain View Hospital needs to reduce physician documentation time. Our 50 doctors spend 2 hours daily on clinical notes, costing $150/hour. We're considering an AI scribe system." } ``` #### Output ```json { "executive_summary": { "headline": "AI Clinical Documentation will save $3.9M annually with 310% ROI", "confidence": "high", "key_insight": "Physician time savings of 90 minutes daily enables 3-4 additional patient visits" }, "industry_insights": { "benchmarks": [ { "metric": "Documentation Time Reduction", "yourValue": 75, "industryAverage": 65, "percentile": 85 } ], "compliance_notes": "HIPAA-compliant implementation adds 15% to costs but is mandatory", "similar_implementations": "Mayo Clinic reported 82% physician satisfaction with similar system" } } ``` ### Financial Services - Fraud Detection #### Input ```json { "client": "Community Bank", "project": "Real-time Fraud Detection", "industry": "financial_services", "natural_language_input": "Processing 500k transactions daily, current fraud rate 0.2% with average loss $1200" } ``` #### Output ```json { "summary": { "expected_roi": 580, "fraud_reduction": "87% reduction in fraud losses", "false_positive_rate": "Less than 0.1%" }, "ml_insights": { "success_probability": 0.92, "key_success_factors": [ "Real-time data pipeline critical", "Model retraining schedule important", "Customer communication strategy needed for false positives" ] }, "regulatory_benefits": "Improved compliance with KYC/AML requirements" } ``` ### Manufacturing - Predictive Maintenance #### Input ```json { "natural_language_input": "Auto parts manufacturer with 20 CNC machines. Unplanned downtime costs us $5000/hour. Currently doing monthly maintenance checks taking 4 hours per machine." } ``` #### Output ```json { "executive_summary": { "headline": "Predictive Maintenance will reduce downtime by 75% with 450% ROI", "primary_benefit": "Prevention of 85% of equipment failures", "implementation_approach": "Phased rollout starting with critical machines" }, "technical_requirements": { "iot_sensors": "$2000 per machine", "data_platform": "Cloud-based solution recommended", "ml_models": "Anomaly detection and failure prediction" }, "expected_outcomes": { "downtime_reduction": "From 120 hours/year to 30 hours/year", "maintenance_optimization": "Move from scheduled to condition-based", "cost_savings": "$450,000 annually" } } ``` ## Response Examples ### Successful Prediction with High Confidence ```json { "project_id": "123e4567-e89b-12d3-a456-426614174000", "executive_summary": { "headline": "Exceptional ROI opportunity with minimal risk", "confidence": "very_high", "key_insight": "Quick wins available through phased implementation", "primary_metric": "6-month payback with 95% confidence" }, "confidence_indicators": { "data_quality": 0.95, "model_confidence": 0.92, "benchmark_alignment": 0.88, "overall": 0.91 }, "next_steps": { "immediate": [ "Secure stakeholder buy-in with executive presentation", "Identify pilot department for initial rollout" ], "short_term": [ "Develop implementation roadmap", "Select technology vendors" ], "long_term": [ "Plan for scale-up across organization", "Establish success metrics" ] } } ``` ### Low Confidence with Recommendations ```json { "project_id": "123e4567-e89b-12d3-a456-426614174001", "executive_summary": { "headline": "Further analysis recommended before proceeding", "confidence": "low", "key_concern": "Insufficient data on current state metrics", "recommendation": "Conduct process assessment first" }, "missing_information": [ "Current process time measurements", "Actual error rates", "Volume fluctuations by season" ], "suggested_actions": [ "Run 2-week time study", "Analyze last 12 months of data", "Interview process stakeholders" ], "alternative_approach": "Consider starting with quick_assessment tool for rapid validation" } ``` ## Best Practices 1. **Start Simple**: Use natural language or simplified JSON first 2. **Iterate**: Begin with quick_assessment, then move to predict_roi 3. **Use Help**: Call the help tool when unsure about parameters 4. **Check Examples**: Use get_examples for industry-specific guidance 5. **Review Errors**: Error messages include corrections and examples 6. **Leverage Context**: The system remembers conversation history 7. **Voice Mode**: Enable for executive presentations 8. **Validate Results**: Cross-reference with industry benchmarks ## Integration Tips ### For LLMs/AI Agents 1. Parse the `executive_summary` first for quick understanding 2. Use `confidence_indicators` to gauge reliability 3. Follow `next_steps` for action planning 4. Check `ml_insights` for data-driven recommendations 5. Use `natural_language_input` to avoid complex JSON construction ### For Developers 1. Always check for `auto_correction_available` in errors 2. Use `simplified_format` when possible 3. Leverage `conversation_session_id` for context 4. Enable `voice_mode` for accessibility 5. Set appropriate `confidence_level` based on data quality ## Conclusion The MCP Server ROI v1.2.0 makes AI ROI calculations accessible through natural language, simplified inputs, and intelligent error handling. Whether you're doing a quick assessment or detailed analysis, the system adapts to your needs while maintaining sophisticated financial modeling capabilities.