Survey sample size
sample_sizeCalculates how many survey responses are needed to estimate a proportion (Cochran formula, with finite population correction), and how many people to invite for an expected response rate. Use for surveys and questionnaires. For comparing groups or testing effects, use power_analysis instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sample_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confidence | No | Confidence level %. Default 95. | |
| population | No | Total population size, if known (e.g. 2000 students). Leave out if very large. | |
| response_rate | No | Expected response rate %. Default 100. | |
| margin_of_error | No | Margin of error %. Default 5. | |
| expected_proportion | No | Expected % answering a certain way. Default 50 (safest). |