Skip to main content
Glama

detect_potential_leakage

Screen datasets for potential leakage by flagging ID-like columns and predictors overly related to the target; review flags without modifying data.

Instructions

Screen a workspace dataset before fitting for potential leakage, such as ID-like columns and, when target_column is supplied, predictors suspiciously related to the label. These flags need domain review; the dataset is not modified.

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": {
      "name": "<name>"
    },
    "name": "detect_potential_leakage"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDataset filename.
delimiterNoCSV delimiter (comma, semi, tab, pipe). Auto.
target_columnNoTarget variable column (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / delimiter
      Added value: +{
      +  "description": "CSV delimiter (comma, semi, tab, pipe). Auto.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does meaningful work: it states the dataset is not modified (read-only semantics) and that results are advisory flags requiring domain review, which sets expectations about output reliability. It also discloses conditional behavior — the label-related checks only run when target_column is provided. The main gap is that it never characterizes the shape of the returned flags.

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 sentences, no filler, and the core purpose is front-loaded before the caveats. The conditional clause is embedded where it matters rather than tacked on.

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 three-parameter screening tool with no output schema and no annotations, the description covers purpose, timing, non-mutation guarantee, conditionality, and how to interpret results. The only meaningful omission is any indication of what the flags look like or how many to expect.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is a 3, but the description earns more by explaining that target_column is not merely optional metadata — supplying it activates an additional class of checks. That is genuine behavioral meaning the schema's 'Target variable column (optional)' does not convey.

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 — 'screen a workspace dataset ... for potential leakage' — and enumerates the concrete signals it looks for (ID-like columns, predictors suspiciously related to the label). That makes it distinguishable in practice from analyze_data_quality and analyze_correlations, though it never names a sibling to route against.

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?

Gives a clear usage window: 'before fitting'. That is real guidance an agent can act on rather than a restatement of purpose. It stops short of exclusions or an explicit alternative (e.g., use analyze_data_quality for general health checks), so it is not full when/when-not coverage.

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