Skip to main content
Glama

APJ RAISE Research

Effect size calculator

effect_size
Read-only

Calculates effect sizes from summary numbers: Cohen's d and Hedges' g from two means and SDs; d and r from a t statistic; η² from an F statistic; odds ratio and risk ratio from a 2×2 table; converts between d and r. Gives the size label (small/medium/large) and a 95% CI where possible.

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": {
      "from": "<from>"
    },
    "name": "effect_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo2×2: group 1 with outcome
bNo2×2: group 1 without
cNo2×2: group 2 with outcome
dNo2×2: group 2 without
fNo
rNo
tNo
dfNot or F error degrees of freedom
n1No
n2No
df1NoF effect degrees of freedom
sd1No
sd2No
fromYes
mean1No
mean2No
d_valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds one genuinely useful behavioral fact – it returns a small/medium/large size label and a 95% CI 'where possible' – but says nothing about what happens when inputs are insufficient for a CI, what error conditions look like, or the response shape.

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?

A single front-loaded sentence with the purpose first, followed by a semicolon-delimited list where every clause corresponds to one of the enum modes – essentially no wasted wording. The dense semicolon run is slightly harder to scan than a short bulleted list would be, but it is compact for the amount of coverage it delivers.

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 17-parameter tool with no output schema, the description does the important work of explaining which inputs pair with which analysis mode and hints at the returned effect size and CI. It does not state which parameters are required per mode (beyond 'from'), how inputs are validated, or what the response contains when no CI can be computed, leaving meaningful gaps for a tool this complex.

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?

With 17 parameters at only 35% schema coverage, the description carries real weight: it maps each mode to the inputs it needs (means and SDs; t statistic; F statistic; 2×2 cells; d_value/r), giving meaning to otherwise undocumented fields like f, t, mean1/mean2, and sd1/sd2. It still leaves n1/n2, df1 vs df, and the a/b/c/d cell semantics to be inferred from context or the partial schema descriptions.

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 and resource ('Calculates effect sizes from summary numbers') and then enumerates exactly which statistics it derives from which inputs (d/g from means+SDs, d/r from t, η² from F, OR/RR from a 2×2 table, d↔r conversion). This makes it unmistakably distinct from statistical siblings like sample_size, power_analysis, and choose_test without opening any schema.

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?

The enumerated input-to-output clauses effectively tell the caller which data to supply for each analysis mode, which is the main usage decision here. It stops short of explicit when-to-use/when-not guidance against siblings such as power_analysis, and never states that the required 'from' value selects the mode.

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