Skip to main content
Glama

business_sample_size

Read-only

Survey sample size + margin of error — Survey and poll math offline. Default: required responses for margin= percentage points (default 5) at confidence= (default 95) with p= expected percent (default 50), finite-population correction via population=, and invitations needed via response_rate= percent. Pass n= instead to get the margin of error for responses you already have. Pass sd= to switch to estimating a mean (margin in the same units). Returns required responses, margin of error, z value, an example interval and a quick table for 1-10 point margins. 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": {
      "margin": "<margin>"
    },
    "name": "business_sample_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
marginYes5

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnly/openWorld/non-destructive, so the description carries real weight and delivers: it discloses pricing ($0.002 USDC on Base via x402), states the math is offline, and enumerates the return payload (required responses, margin of error, z value, interval, 1–10 point table). It stops short of stating failure modes or rounding behavior, but the paid-call cost disclosure is genuinely valuable context an agent cannot get elsewhere.

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

Conciseness3/5

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

The purpose and defaults are front-loaded, but the body is two long em-dash-chained sentences with stacked parentheticals that are harder to parse than they need to be. Nearly every clause carries information, so little is padding, but the packing costs scanability.

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 single-parameter calculator with no output schema, the description covers the essentials — defaults, alternate modes, output contents, and price — which is enough for an agent to call it correctly. The residual gap is the schema/prose mismatch over which parameters actually exist and whether margin is truly required.

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 coverage is nominally 100%, but the sole documented parameter is described only as the string "5", so the schema adds almost nothing; the description rescues it by defining margin as percentage points and giving defaults for confidence, p, population and response_rate. A caveat: those extra parameters (n=, sd=, confidence=, p=) appear only in the prose and are absent from the schema, and margin is marked required even though the 'pass n= instead' path implies otherwise.

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 opening clause names a specific verb and resource — computing survey sample size and margin of error, offline — which is unmistakable and unique among the business_* siblings. It does not explicitly reference any sibling tool, so it stops short of full differentiation, but the resource is narrow enough that confusion is unlikely.

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 clear conditional routing within the tool: default mode for required responses, 'pass n= instead' for margin of error on existing data, and 'pass sd=' to switch to a mean estimate. What is missing is any statement of when to pick this versus a sibling such as business_ab_test, and no exclusions are offered.

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