Skip to main content
Glama

find_outliers

Read-only

Detect values far outside a numeric column's usual range, summarize outlier counts across columns, and list extreme rows while hiding personal data.

Instructions

Find numbers far outside a column's usual range.

Without column: every numeric column with its outlier count and usual range, most outliers first. With column: also its most extreme rows as row numbers with values (values hidden if the column looks like personal data).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "dataset": "<dataset>"
    },
    "name": "find_outliers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoColumns per page, or with column, how many of the most extreme rows to list.
columnNoOne numeric column to examine closely. Omit to summarise every numeric column.
methodNoiqr (default): beyond 1.5 interquartile ranges from the middle half, robust to skew. zscore: more than 3 standard deviations from the mean, for bell-shaped data.iqr
offsetNoIndex of the first item to return, for paging.
datasetYesA dataset name returned by load_dataset.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, and the description adds real behavioural detail: results are ordered most-outliers-first and extreme values are masked when the column looks like personal data. Pagination and ordering behaviour are surfaced, which is genuine value beyond the annotations.

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?

Very compact and front-loaded: the one-line purpose comes first, then the two modes in a single sentence pair. No redundant wording, though the mid-sentence line break fragments the opening statement.

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

Completeness4/5

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

A read-only analytical tool with 5 fully documented parameters and an output schema, so return values need no explanation here. The description covers both modes, ordering and PII masking; only the default-detection assumption and error conditions for a non-numeric column are unaddressed.

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?

Schema description coverage is 100%, so the schema already explains limit's dual meaning, the iqr/zscore tradeoff, offset paging and the dataset provenance. The description only reinforces the column-omitted/column-supplied split, adding little that the schema does not already carry; baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: find numbers far outside a column's usual range, plus the two operating modes (all numeric columns vs one column). This inherently separates it from check_missing, find_duplicates and check_references, though no sibling is named explicitly.

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 gives clear mode-selection guidance: omit column to summarise every numeric column, supply column to drill into one. It does not name alternatives (e.g. when to use method=iqr vs zscore) or state exclusions, so it stops short of a 5.

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