Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/tolerance-stack

Computes the minimum and maximum of a linear dimensional stack (the gap) from signed contributions with symmetric, unequal-bilateral, unilateral or min/max limits, both by exact worst-case arithmetic and by root-sum-square, names the dominant contributor and tests the gap against a required minimum and/or maximum. For mechanical designers and agents checking clearances. It does not do 2D or 3D sta

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/tolerance-stack

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/tolerance-stack", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"unit":"mm","dimensions":[{"name":"housing bore","plus":0.1,"minus":0,"nominal":50},{"tol":0.05,"name":"bearing A","sign":-1,"nominal":20},{"tol":0.1,"name":"spacer","sign":-1,"nominal":29.5}],"requirement":{"min":0.1}}),
});
console.log(await res.json());

Example input

{
  "unit": "mm",
  "dimensions": [
    {
      "name": "housing bore",
      "plus": 0.1,
      "minus": 0,
      "nominal": 50
    },
    {
      "tol": 0.05,
      "name": "bearing A",
      "sign": -1,
      "nominal": 20
    },
    {
      "tol": 0.1,
      "name": "spacer",
      "sign": -1,
      "nominal": 29.5
    }
  ],
  "requirement": {
    "min": 0.1
  }
}