Implementation
gradeNot graded
gradeNot graded
generate_populationAction
Create a new dummy population to sample from. Clears previous results. Distributions: uniform, normal, exponential, bimodal.
View tool JSON
{
"name": "generate_population",
"kind": "act",
"impl": "imperative",
"description": "Create a new dummy population to sample from. Clears previous results. Distributions: uniform, normal, exponential, bimodal.",
"inputSchema": {
"type": "object",
"properties": {
"size": {
"type": "integer",
"minimum": 100,
"maximum": 5000,
"description": "Number of values in the population"
},
"distribution": {
"type": "string",
"enum": [
"uniform",
"normal",
"exponential",
"bimodal"
]
},
"seed": {
"type": "integer",
"description": "Random seed, for reproducible populations"
}
}
}
}draw_samplesAction
Draw k random samples of size n from the current population and record the mean of each. Returns the run summary and the list of means. Use source="server" to have the Apache-hosted MCP server do the sampling.
View tool JSON
{
"name": "draw_samples",
"kind": "act",
"impl": "imperative",
"description": "Draw k random samples of size n from the current population and record the mean of each. Returns the run summary and the list of means. Use source=\"server\" to have the Apache-hosted MCP server do the sampling.",
"inputSchema": {
"type": "object",
"properties": {
"sample_size": {
"type": "integer",
"minimum": 2,
"maximum": 200
},
"repetitions": {
"type": "integer",
"minimum": 1,
"maximum": 2000
},
"with_replacement": {
"type": "boolean"
},
"source": {
"type": "string",
"enum": [
"browser",
"server"
]
}
},
"required": [
"sample_size",
"repetitions"
]
}
}get_summaryAnswer
Return the population statistics, the statistics of all sample means so far, and every run recorded.
View tool JSON
{
"name": "get_summary",
"kind": "answer",
"impl": "imperative",
"description": "Return the population statistics, the statistics of all sample means so far, and every run recorded.",
"inputSchema": {
"type": "object",
"properties": {}
}
}clear_resultsAction
Discard all recorded sample means and runs, keeping the population.
View tool JSON
{
"name": "clear_results",
"kind": "act",
"impl": "imperative",
"description": "Discard all recorded sample means and runs, keeping the population.",
"inputSchema": {
"type": "object",
"properties": {}
}
}