Skip to main content
Glama
haiiibin

data-profiler-mcp

correlation_matrix

Rank pairwise correlations between numeric columns to identify redundant features and multicollinearity. Optionally examine correlations with a single target column to guide feature selection.

Instructions

Correlations between numeric columns, ranked by strength.

Computes pairwise correlations across all numeric columns (pearson by default; spearman or kendall for rank-based relationships) and returns pairs ranked by absolute correlation, a high_correlation_pairs list (|r| >= 0.9, a multicollinearity signal when preparing features for modeling), and the full matrix when there are 15 or fewer numeric columns. Pass column to instead rank how strongly every other numeric column correlates with that one, for example a target variable. Constant columns are excluded and listed.

Use this when the user is selecting features for a model, hunting redundant columns, or asking what moves together with a numeric outcome.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
columnNo
methodNopearson
max_rowsNo
Behavior5/5

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

With no annotations, the description carries the full burden and meets it: it discloses the default method (pearson), ranking by absolute correlation, the 0.9 threshold for high_correlation_pairs, the conditional full-matrix output for 15 or fewer numeric columns, and the exclusion/listing of constant columns.

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?

The description is front-loaded with a one-line summary and expands into compact, purposeful detail. Every sentence adds value—method options, ranking behavior, threshold, matrix condition, constant columns, and usage context—without padding.

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?

Given no output schema, the description explains return values well (pairs, high_correlation_pairs, conditional matrix, constants). However, max_rows is never addressed, so its effect is unclear; this is a small gap in an otherwise complete profile.

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 0%, so the description must compensate. It adds strong semantics for method (pearson/spearman/kendall) and column (target-variable ranking), but it does not explain path or max_rows, leaving two of four parameters under-specified.

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 opens with a specific verb and resource—'Correlations between numeric columns, ranked by strength'—and then explains pairwise computation, ranking, and optional target-column behavior. This clearly differentiates correlation_matrix from the profiling, preview, and stats sibling tools.

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?

It explicitly states when to use it: 'when the user is selecting features for a model, hunting redundant columns, or asking what moves together with a numeric outcome.' It does not explicitly name alternatives to avoid, but the guidance is clear and actionable.

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

Install Server

Other Tools

Latest Blog Posts

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/haiiibin/data-profiler-mcp'

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