Skip to main content
Glama

x402-cohens-d

Cohens D: Calculate Cohen's d effect size between two groups. Provide group1 and group2 arrays; measures how far two means differ in standard deviations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aNoA to process
bNoB to process
group1NoGroup1 to process
group2NoGroup2 to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "description": "A to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / b
      Added value: +{
      +  "description": "B to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / group1
      Added value: +{
      +  "description": "Group1 to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / group2
      Added value: +{
      +  "description": "Group2 to process",
      +  "type": "string"
      +}
  2. First observed

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly doesn't. It never states whether the calculation is pooled-SD or Glass's delta, what happens when the groups have different lengths, whether the result is a single number, or that the operation is a pure read with no side effects.

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?

Two sentences, zero padding, with the core purpose front-loaded before the input hint. Efficient, though the second clause slightly duplicates the first by re-explaining what Cohen's d measures.

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 stateless statistical calculation with no output schema, the description should at minimum say what comes back (a scalar d value) and clarify the two unexplained parameters. It covers the concept adequately but leaves return shape and half the inputs to inference.

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?

Schema coverage is nominally 100%, but the schema descriptions are vacuous placeholders ('A to process', 'Group1 to process'), so no real meaning is conveyed. The description names group1/group2 but calls them 'arrays' while the schema types them as strings, and it never mentions the a/b parameters at all — leaving half the inputs unexplained.

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 names a specific verb and resource ('Calculate Cohen's d effect size between two groups') and even glosses the meaning ('how far two means differ in standard deviations'). It does not differentiate from near-neighbors such as x402-effect-size or x402-odds-ratio, which the agent cannot distinguish without opening schemas, so it stops short of a 5.

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?

It says to 'provide group1 and group2 arrays' but gives no when-to-use condition, no prerequisites (e.g. minimum sample size, equal-length groups), and no pointer to alternative effect-size tools. An agent gets no routing guidance at all.

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.

Resources