API & MCP
Everything a person can do on Tolerance Stack-up Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kerfwisetolerancestack.usefulweb.site/api/v1/calculate– run Tolerance Stack-up CalculatorGET https://kerfwisetolerancestack.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Tolerance Stack-up Calculator
Add and subtract dimension chains with asymmetric deviations to calculate the worst-case and root-sum-square range of a clearance or overlap.
| Field | Type | Default | Description |
|---|---|---|---|
dimensions | textarea | "Opening,100,-0.2,0.2,1\nPart A,40,-0.1,0.1,-1\nPart B,59,-0.1,0.1,-1" | Dimensions: name, nominal, lower deviation, upper deviation, direction. One row per dimension. Use the same unit for every row. Deviations are signed (for example -0.2 and 0.2, or -0.020 and -0.007 for a shaft). Direction is +1 for additions and -1 for subtractions. |
Example request
Clearance between two parts
curl -X POST https://kerfwisetolerancestack.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"dimensions":"Opening,100,-0.2,0.2,1\nPart A,40,-0.1,0.1,-1\nPart B,59,-0.1,0.1,-1"}'
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://kerfwisetolerancestack.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kerfwise_tolerance_stack - Local stdio connector:
node src/mcp-stdio.ts --tool=kerfwise-tolerance-stack
{
"mcpServers": {
"kerfwise-tolerance-stack": { "type": "http", "url": "https://kerfwisetolerancestack.usefulweb.site/mcp" }
}
}