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

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.

Inputs of Tolerance Stack-up Calculator
FieldTypeDefaultDescription
dimensionstextarea"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)

{
  "mcpServers": {
    "kerfwise-tolerance-stack": { "type": "http", "url": "https://kerfwisetolerancestack.usefulweb.site/mcp" }
  }
}