Skip to main content
Glama

detectoutliers

Name: DetectOutliers_Universal_Anomaly_Engine

Description: A sophisticated diagnostic tool that identifies statistical anomalies and categorical irregularities in both numeric and textual datasets. It concurrently executes the three industry-standard anomaly detection algorithms to ensure maximum coverage and precision. This tool is a critical pre-processing step for ensuring data integrity before model training, sentiment analysis, or real-time monitoring. Core Functionality

Numeric Data: Automatically identifies "Spikes" and "Dips" (values significantly outside the expected distribution). Ideal for sensor telemetry, financial tickers, and traffic logs.

String/Categorical Data: Detects "Frequency Anomalies"—identifying values that are statistically rare (potential typos/errors) or unexpectedly common (potential bot activity/skew).

When to Trigger This Tool

You should prioritize this tool as a mandatory "Sanity Check" in the following workflows:

Data Scrubbing: Cleaning batches of training data to remove noise that could bias an LLM or regressor.

Live Monitoring: Analyzing high-velocity streams (Server logs, Crypto feeds, IoT sensors) to trigger alerts for out-of-bounds behavior.

Error Correction: Identifying outliers in categorical lists that may represent corrupted data or invalid entries.

Input Parameters

data_list: An array containing either numeric values (integers/floats) or strings.

    Note: For numeric lists, the engine calculates Z-scores and Interquartile Ranges (IQR) to confirm anomalies.

    Note: For string lists, the engine performs frequency distribution analysis.

Output Interpretation

The tool returns a filtered subset of the original list containing only the identified outliers.

Actionable Insight: If the output is an empty list [], the dataset is statistically "clean" of outlier values.

Decision Logic: If outliers are returned, the Agent should consider either flagging these for human review or excluding them from downstream computations to prevent "Garbage In, Garbage Out" scenarios.

Example Input for the 'payload' parameter: {"array":[10.1727,11.9026,7.9209,9.0841,9.8298,11.345,9.6483,8.9257,8.9788,95.9969,11.1933,12.1186,91.5798,10.0861,10.1675,10.2935,11.2547,10.4636,9.6607,9.7316]}

Example Output: [{'position': 9, 'value': 95.9969}, {'position': 12, 'value': 91.5798}]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It reveals that three algorithms run concurrently, explains Z-score/IQR for numeric data and frequency analysis for strings, and clarifies that an empty list means the data is clean. It also provides decision logic for handling returned outliers, adding substantial context beyond the bare schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but well-organized into clearly labeled sections: Core Functionality, When to Trigger, Input Parameters, Output Interpretation, and an example. It front-loads the most important information and uses bullet-like structure effectively. Some redundancy exists (e.g., restating the tool's name), but overall the length is justified by the amount of context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers use cases, algorithms, output interpretation, and a concrete example, which is strong given the sparse schema. However, the parameter mismatch between 'data_list' and 'payload' creates ambiguity about the exact required input structure, and there is no mention of limitations, error cases, or mixed-type handling. These gaps reduce completeness for an automated agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema only shows a required 'payload' object with no field descriptions, so the description must compensate. It does explain that data_list should be an array of numbers or strings and provides a detailed example. However, there is a notable mismatch: the schema parameter is 'payload', while the description refers to 'data_list' and the example wraps the array under a key 'array' inside payload, which is confusing and requires the agent to infer the actual structure.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool 'identifies statistical anomalies and categorical irregularities in both numeric and textual datasets.' It uses specific verbs and resources (anomaly detection, numeric/textual datasets) and clearly distinguishes itself from sibling tools focused on missing data and sanitization.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a dedicated 'When to Trigger This Tool' section listing three concrete workflows: Data Scrubbing, Live Monitoring, and Error Correction. It clearly says when to use the tool, though it does not explicitly discuss when not to use it or compare alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: meta-analysis, outlier detection, missing data bias detection, missing data visualization, missing data quantification, and data sanitization. There is no functional overlap; tools are complementary.

Naming Consistency3/5

Tool names are lowercase and descriptive, but they mix single-word compounds (absynthesis, detectoutliers) with underscore-separated (sanitize_dataset) and no consistent pattern. This inconsistency could confuse an agent.

Tool Count5/5

Six tools is well-scoped for a scientific microservices server focused on data preprocessing and A/B test analysis. Each tool earns its place without being overwhelming or insufficient.

Completeness3/5

The set covers data quality diagnostics and meta-analysis well, but lacks an imputation tool or further analysis tools (e.g., statistical tests). After detecting biased missing data, the agent has no path to handle it, creating a moderate gap.

Resources