Skip to main content
Glama
Ian3738
by Ian3738

correlation

Calculate correlation matrices with per-pair significance tests, confidence intervals, magnitude labels, multiple-comparison adjustment, and partial correlations.

Instructions

Correlations between numeric variables: a full matrix plus per-pair tests with n, r, p, confidence intervals and a magnitude label. Supports Pearson, Spearman and Kendall, multiple-comparison adjustment, and partial correlations - pass control to residualise one or more variables out of every pair first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesDataset name in the session.
plotsNoInclude a correlation heatmap.
adjustNoMultiple-comparison adjustment: none, holm, bonferroni, fdr, BH.none
digitsNoDecimal places.
methodNopearson, spearman or kendall.pearson
controlNoVariables to partial out, giving partial correlations.
variablesNoNumeric columns to correlate (default: all numeric).
conf_levelNoConfidence level.
correlate_withNoCorrelate every other variable against just these columns, instead of every pair.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure, and it does so well: it reveals the return structure (full matrix plus per-pair tests), the statistics computed, and the partial-correlation behavior of the `control` parameter. It does not mention missing-data handling or plot outputs, but the essential computational behavior is clearly disclosed.

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 two dense sentences: the first front-loads the primary output, and the second covers methods, adjustment, and the non-obvious `control` behavior. Every clause contributes unique information with no filler or repetition.

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 9-parameter statistical tool with no output schema, the description covers the main result structure, supported methods, and the partial-correlation mechanism, while the schema documents every parameter. It does not address edge cases like missing values or how `plots` and `correlate_with` alter the output, but the core calling context is sufficiently complete.

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 description coverage is 100%, so the baseline is 3. The description adds genuine value beyond the schema by explaining that `control` residualises variables out of every pair to produce partial correlations, and by clarifying the output shape. This is more than the schema's bare 'Variables to partial out' text provides.

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?

The description opens with 'Correlations between numeric variables' and immediately lists the outputs (full matrix plus per-pair tests with n, r, p, confidence intervals, magnitude label), so the tool's core function is clear. It does not explicitly distinguish itself from siblings like survey_correlation or regression, but the scope and statistical detail are specific enough to be unambiguous.

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

Usage Guidelines3/5

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

The description implies when to use the tool: whenever pairwise correlations among numeric variables are wanted, with support for Pearson, Spearman, Kendall, and partial correlations. It does not provide explicit when-to-use versus when-not-to-use guidance, nor does it point to alternatives such as survey_correlation for survey-weighted analyses.

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

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/Ian3738/r-stats-mcp'

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