Skip to main content
Glama

TinyFn

calculate_covariance

Calculate covariance between two datasets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesComma-separated X values
yYesComma-separated Y values
populationNoPopulation covariance vs sample

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
codeNo
typeNo
countNo
errorNo
covarianceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations provided, and the description does not disclose behavioral traits such as handling of empty datasets, the meaning of the 'population' parameter (sample vs population covariance), or return format. With no annotations, the description carries full burden but falls short.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, no wasted words. Front-loaded with the core purpose. Could be slightly improved by adding a brief note about the population parameter.

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?

Given that an output schema exists and the tool is simple, the description is adequate but minimal. It covers the basic purpose but lacks contextual details like default behavior (sample vs population) or edge cases.

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 coverage is 100%, so baseline is 3. The description does not add meaning beyond what the schema already provides. It simply says 'Calculate covariance between two datasets' without elaborating on the parameters.

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 clearly states the action ('Calculate covariance') and the resource ('between two datasets'). However, it does not differentiate from sibling tools like calculate_correlation, which could confuse an agent.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives. The description lacks context about appropriate use cases, prerequisites (e.g., datasets must be numeric), or when not to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.