UNIVERSAL INTERFACE

tools.run

One command, comprehensive analysis toolkit. Execute any statistical analysis with consistent syntax through your AI assistant.

How tools.run Works

Simple, consistent interface for every analysis type. No need to learn different APIs or syntaxes.

# Example: Analyze customer segmentation with k-means clustering

$ mcp.tools_run(
tool_name="kmeans",
taskList={
"inputs": {
"dataset": "customers.csv",
"features": ["recency", "frequency", "monetary"],
"n_clusters": 5,
"userContext": {
"objective": "Identify customer segments for targeted marketing"
}
}
}
)
✓ Analysis Complete
• Identified 5 distinct customer segments
• Silhouette Score: 0.68 (good separation)
• Largest segment: "High-Value Loyalists" (23%)
• Interactive Report: https://api.mcpanalytics.ai/reports/abc123

All Available Tools

Extensive collection of professional analysis tools, organized by category. Each tool returns comprehensive results with visualizations.

Statistical Regression 5

linear - Linear Regression
ridge - Ridge Regression
lasso - Lasso Regression
elastic_net - Elastic Net
logistic - Logistic Regression

Machine Learning 3

xgboost - XGBoost
random_forest - Random Forest
kmeans - K-Means Clustering

Hypothesis Testing 3

t_test - T-Test
anova - ANOVA
chi_square - Chi-Square Test

Time Series Analysis 3

arima - ARIMA Forecasting
prophet - Prophet Forecasting
var - Vector Autoregression

Causal Inference 4

propensity_score - Propensity Matching
did - Difference-in-Differences
synthetic_control - Synthetic Control
causal_impact - Causal Impact

Customer Analytics 2

rfm - RFM Segmentation
bg_nbd - Customer Lifetime Value

Advanced Analytics 5

pca - Principal Components
correlation - Correlation Analysis
cox - Survival Analysis
apriori - Association Rules
price_elasticity - Price Elasticity

Bayesian Methods 1

ab_testing - Bayesian A/B Testing

Why Use tools.run?

Built specifically for AI assistants to execute professional statistical analysis

Consistent Interface

Same syntax across our entire toolkit. Learn once, use everywhere.

Rich Results

Interactive reports with visualizations, metrics, and insights.

Fast Execution

Optimized for AI assistants. Most analyses complete in seconds.

Secure Processing

End-to-end encryption, SOC 2 compliant infrastructure.

AI Insights

Automatic interpretation with actionable recommendations.

Shareable Reports

Browser-ready URLs that work without authentication.

Try It With Your AI Assistant

Copy this example and customize for your data

# Copy this template and replace with your specifics

mcp.tools_run(
    tool_name="[SELECT_TOOL]",  # e.g., "linear", "kmeans", "t_test"
    taskList={
        "inputs": {
            "dataset": "[YOUR_DATA_URL]",  # CSV URL or file path
            "userContext": {
                "objective": "[YOUR_GOAL]",  # What you want to learn
                "company": "[OPTIONAL]"  # Your organization
            },
            # Add tool-specific parameters below
            # See documentation for each tool's requirements
        }
    },
    generate_insights=true  # Get AI interpretation
)
Connect Your AI Assistant

Ready to Analyze?

Connect MCP Analytics to your AI assistant and start running professional analysis in minutes.