Skip to main content
Glama
Meador793

Stats Explorer MCP

by Meador793

Correlation (descriptive)

correlation
Read-only

Measure the strength and direction of a relationship between two numeric columns, returning r or ρ, confidence intervals, and a least-squares line without a p-value.

Instructions

Strength and direction of the relationship between two numeric columns (r or ρ, CI, least-squares line), WITHOUT a p-value. To test whether a relationship is significant, use a hypothesis_test analysis with test "correlation". The user confirms the columns first.

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
fileNoPath to the data file: CSV, TSV, Excel (.xlsx/.xls) or Parquet. If the user attached the file to the chat, pass its path or name here (a file:// link, @name or #file:name also works); do not paste its contents. Relative names are found in the workspace folders. Files of millions of rows are fine. JSON/BSON and other NoSQL data are not tabular and are not supported.
methodNopearson
x_nameNo
y_nameNo
x_columnNo
y_columnNo
confidenceNoConfidence level for intervals. Default 0.95.
confirmation_tokenNoOnly after the user has confirmed the proposed choices: the confirmation_token from the previous response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety bar is low; the description still adds real value by disclosing that no p-value is returned and that a user confirmation step precedes execution. It does not say whether confirmation_token is mandatory or what happens if it is omitted.

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 short sentences, front-loaded with what the tool computes, then the alternative, then the prerequisite. No filler.

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

Completeness3/5

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

For a 10-param, no-output-schema analytical tool the description covers purpose and the confirm-first workflow but leaves the input source (arrays vs file) and duplicate column-name parameters unexplained, which is exactly the ambiguity an agent will hit when constructing a call.

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

Parameters2/5

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

With 10 parameters and only 30% schema coverage, the description carries the burden but does not: it never explains the x/y arrays versus file versus x_name/y_name versus x_column/y_column alternatives, nor what pearson vs spearman do. Only the method choice ('r or rho') and CI are loosely implied.

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 definition names a specific computation (strength/direction between two numeric columns) and enumerates the outputs: r or rho, CI, least-squares line. Its explicit exclusion of a p-value separates it cleanly from the significance-testing siblings.

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 gives a clear when-not ('WITHOUT a p-value') and routes significance testing to a hypothesis_test with test "correlation", plus notes the user must confirm the columns first. The one weakness is that no sibling tool is literally named hypothesis_test (the list has run_test/choose_test), so the redirect is slightly ambiguous.

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