Skip to main content
Glama

util_power

Read-only

Statistical power and sample size — Power analysis for study and experiment design. test=two-sample | one-sample | paired (exact noncentral t, matches G*Power) | proportions (A/B conversion rates via Cohen's h; p1= and p2= or lift=%) | correlation (r=). Give effect= (Cohen's d) or diff= + sd=; with n= returns achieved power, verdict and minimum detectable effect; without n= returns the n required (per group) plus an n-by-power table; n= alone returns the minimum detectable effect (with p1= for proportions: the detectable conversion rates). Options: alpha (0.05), power (0.8), alternative=two-sided|one-sided, ratio=n2/n1. Price: $0.002 USDC (Base, via x402).

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": {
      "test": "<test>",
      "effect": "<effect>"
    },
    "name": "util_power"
  }
}

Input Schema

NameRequiredDescriptionDefault
testYestwo-sample
effectYes0.5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the bar is low, and the description clears it by disclosing what each invocation returns (verdict, minimum detectable effect, n-by-power table) and by surfacing the paid-call cost ($0.002 USDC via x402 on Base) — a material fact an agent must know before calling. It does not describe latency, error behavior, or whether a failed paid call is refunded.

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?

Purpose and cost anchor the text, and pipe delimiters keep the test-family enumeration scannable. It is a dense single block that mixes input recipes, return behavior, and pricing, so it reads more like a wall of text than cleanly separated sections, but nearly every clause carries operational information.

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

Completeness5/5

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

With no output schema, the description must explain return values, and it does: achieved power, verdict, minimum detectable effect, required n per group, and an n-by-power table, plus the conditional branch that selects among them. Pricing and default option values are also supplied, leaving nothing essential for a correct call unresolved.

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

Parameters5/5

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

The input schema is nominally 100% described but its descriptions are only placeholder examples ('two-sample', '0.5'), so the description carries real weight: it maps test values, explains the effect/diff+sd alternatives, defines p1=/p2=/lift=% for proportions, and documents alpha (0.05), power (0.8), alternative=two-sided|one-sided, and ratio=n2/n1. That is substantial meaning beyond the schema, though it also reveals the schema is missing most of the parameters it references.

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 opening states a specific verb and resource — 'Statistical power and sample size — Power analysis for study and experiment design' — and then enumerates the exact test families supported (two-sample, one-sample, paired, proportions, correlation). This distinguishes it cleanly from siblings like util_anova or util_chi_square, which are different statistical procedures.

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 concrete input recipes ('Give effect= (Cohen's d) or diff= + sd=') and explains the branch conditions: with n= you get achieved power, without n= you get required n. That is strong when-to-use context. It stops short of explicitly naming when to pick this over a sibling statistics tool, so it is not a full 5.

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