Skip to main content
Glama

analyze_correlations

Rank numeric column pairs by correlation strength within a dataset using Pearson or Spearman analysis to identify relationships; results show association, not causation.

Instructions

Rank numeric column pairs by correlation strength within one dataset. Use Pearson for linear association or Spearman for rank association; neither establishes causation. For changes between datasets, use analyze_feature_drift.

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": "analyze_correlations"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDataset filename.
top_nNoNumber of strongest pairs, clamped to 1–50 (default 10).
methodNo'pearson' or 'spearman' (default pearson).
delimiterNoCSV delimiter (comma, semi, tab, pipe). Auto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.4
    • changedInput schema / properties / top_n / description
      Previous value: -"Number of top pairs to return (default 10)."New value: +"Number of strongest pairs, clamped to 1–50 (default 10)."
  2. Changed1 schema field changed
    • addedInput schema / properties / delimiter
      Added value: +{
      +  "description": "CSV delimiter (comma, semi, tab, pipe). Auto.",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It contributes a meaningful caveat that neither method establishes causation, but it omits other behavior an agent needs: how non-numeric or missing values are handled, whether minimum sample size matters, and what the ranked 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?

Three tight sentences: the operation first, the method semantics second, the sibling routing last. No filler or repetition of schema details.

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

Completeness5/5

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

The description conveys the ranked-pair return shape in lieu of an output schema, sets the statistical interpretation boundary, and routes to the correct alternative. Remaining gaps (data cleaning behavior) are peripheral to invoking the tool correctly.

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 3, but the description earns above baseline by explaining what the method choice actually means (linear versus rank association), which the schema only enumerates as string literals. It adds no meaning for name, top_n, or delimiter beyond the schema.

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?

States a specific verb (rank), resource (numeric column pairs) and scope (within one dataset), which immediately distinguishes it from pairwise-across-dataset tools. An agent can identify the operation without opening the 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?

Explicitly names the alternative (analyze_feature_drift) and the condition that selects it (changes between datasets), and clarifies which method to pick for linear versus rank association. Both the when-to-use and when-not-to-use cases are covered.

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