Skip to main content
Glama

detect_outliers

Identify data points that deviate from normal patterns using statistical and machine learning methods for data quality assessment and anomaly detection in analytical workflows.

Instructions

Detect outliers in numerical columns using various algorithms.

Identifies data points that deviate significantly from the normal pattern using statistical and machine learning methods. Essential for data quality assessment and anomaly detection in analytical workflows.

Returns: Detailed outlier analysis with locations and severity scores

Detection Methods: šŸ“Š Z-Score: Statistical method based on standard deviations šŸ“ˆ IQR: Interquartile range method (robust to distribution) šŸ¤– Isolation Forest: ML-based method for high-dimensional data

Examples: # Basic outlier detection outliers = await detect_outliers(ctx, ["price", "quantity"])

# Use IQR method with custom threshold outliers = await detect_outliers(ctx, ["sales"], method="iqr", threshold=2.5)

AI Workflow Integration: 1. Data quality assessment and cleaning 2. Anomaly detection for fraud/error identification 3. Data preprocessing for machine learning 4. Understanding data distribution characteristics

Input Schema

NameRequiredDescriptionDefault
columnsNoList of numerical columns to analyze for outliers (None = all numeric)
methodNoDetection algorithm: zscore, iqr, or isolation_forestiqr
thresholdNoSensitivity threshold (higher = less sensitive)

Input Schema (JSON Schema)

{ "properties": { "columns": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "List of numerical columns to analyze for outliers (None = all numeric)" }, "method": { "default": "iqr", "description": "Detection algorithm: zscore, iqr, or isolation_forest", "type": "string" }, "threshold": { "default": 1.5, "description": "Sensitivity threshold (higher = less sensitive)", "type": "number" } }, "type": "object" }

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/jonpspri/databeak'

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