API & MCP
Everything a person can do on Reaction Time Statistics, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://mindquarryreactionstats.usefulweb.site/api/v1/calculate– run Reaction Time StatisticsGET https://mindquarryreactionstats.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Reaction Time Statistics
Paste reaction times (from Mindquarry, a lab task, a game or a stopwatch) and get the raw mean, median, standard deviation and percentiles, plus the three common ways to deal with outliers side by side: fixed cut-offs for anticipations and lapses, mean ± k standard deviations, and median ± k scaled median absolute deviations, and a trimmed mean. Every value is flagged with the rule that removed it.
| Field | Type | Default | Description |
|---|---|---|---|
times | textarea | "412 388 455 401 367 1290 395 420 140 433\n398 377 409 441 386 392 415 2405 404 | Reaction times. One value per line or separated by spaces, commas, tabs or semicolons. |
unit | select (ms, s) | "ms" | Unit of the values |
decimalComma | boolean | false | Values use a decimal comma (0,412) |
minMs | number | 150 | Faster than this is an anticipation |
maxMs | number | 3000 | Slower than this is a lapse |
sdK | number | 2.5 | SD rule: mean ± k × SD, k = |
madK | number | 3 | MAD rule: median ± k × MAD, k = |
trimPercent | number | 10 | Trimmed mean: cut from each end |
Example request
20 simple reaction times with an anticipation and two lapses
curl -X POST https://mindquarryreactionstats.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"times":"412 388 455 401 367 1290 395 420 140 433\n398 377 409 441 386 392 415 2405 404 399"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://mindquarryreactionstats.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
mindquarry_reaction_stats - Local stdio connector:
node src/mcp-stdio.ts --tool=mindquarry-reaction-stats
{
"mcpServers": {
"mindquarry-reaction-stats": { "type": "http", "url": "https://mindquarryreactionstats.usefulweb.site/mcp" }
}
}