Skip to main content
Glama

analyze_feature_drift

Compare feature distributions between reference and current datasets to detect statistical drift at a chosen significance level, with optional column and delimiter controls.

Instructions

Compare feature distributions in a reference (baseline) and current workspace dataset, using shared columns unless a subset is supplied. Reports statistical drift flags at alpha without modifying data; use analyze_data_quality for one dataset.

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": {
      "reference_name": "<reference_name>",
      "current_name": "<current_name>"
    },
    "name": "analyze_feature_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
alphaNoSignificance level (default 0.05).
columnsNoColumns to check (default all common).
current_nameYesCurrent dataset filename.
cur_delimiterNoCurrent CSV delimiter (comma, semi, tab, pipe).
ref_delimiterNoReference CSV delimiter (comma, semi, tab, pipe).
reference_nameYesReference dataset filename.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / cur_delimiter
      Added value: +{
      +  "description": "Current CSV delimiter (comma, semi, tab, pipe).",
      +  "type": "string"
      +}
    • addedInput schema / properties / ref_delimiter
      Added value: +{
      +  "description": "Reference CSV delimiter (comma, semi, tab, pipe).",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully states that the tool does not modify data and that it reports statistical drift flags at the alpha threshold, but it says nothing about permissions, cost/runtime, what happens when a requested column is absent from one dataset, or what the flag output looks like.

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

Conciseness5/5

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

Two tight sentences: the comparison semantics and column scope come first, the non-mutation guarantee and drift reporting second, and the sibling routing last. Nothing is redundant or padded.

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?

For a six-parameter, fully schema-documented analysis tool with no output schema, the description covers purpose, defaults, non-mutation, and the sibling distinction. It falls slightly short on edge-case behavior (missing columns across datasets) and on what a drift flag result contains.

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 coverage is 100%, so alpha, columns, delimiters and dataset names are already documented in structured form. The description only echoes the default behavior of 'columns' (all common columns), adding no delimiter format detail or alpha semantics beyond the schema — baseline 3 is appropriate.

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 names a specific verb and resource — comparing feature distributions between a reference (baseline) and current dataset — and pins down the column-selection scope ('shared columns unless a subset is supplied'). It also explicitly sets itself apart from analyze_data_quality, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Use context is stated directly (two-dataset comparison) and the alternative is named with its selecting condition: 'use analyze_data_quality for one dataset.' No inference is required to route between them.

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