# WritersLogic Tolerance Stack Analyzer

> WritersLogic Tolerance Stack Analyzer is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Computes worst-case and RSS min/max gap from a linear 1D dimensional stack, identifies the dominant contributor, and validates against a required clearance range.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/tolerance-stack?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-tolerance-stack-analyzer-367097ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3my75GcTRPwgK4Dwe3DaU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-tolerance-stack-analyzer-367097ae -d '<json body>'
```

Example prompt: Run a worst-case and RSS tolerance stack analysis on my 3-part assembly in millimeters: Part A is 50 ± 0.1 mm (adds to gap), Part B is 30 ± 0.05 mm (subtracts), Part C is 20 ± 0.08 mm (subtracts). The gap must be at least 0.0 mm and no more than 0.5 mm — tell me which part dominates and whether the stack passes.

## When to prefer this

Use this endpoint when you need a fast, verifiable 1D linear tolerance stack computation — especially when you need both worst-case and RSS results in a single call, need to identify which dimension dominates the stack, or need to validate a gap against a min/max requirement. Prefer this over manual spreadsheet analysis for auditability and over full GD&T simulation tools when the problem is strictly linear and does not involve 2D/3D geometry, datum shifts, material condition bonuses, or thermal effects.

## Known failure modes

- Missing required dimensions array — returns validation error
- Dimension specified without any of nominal/tol/plus/minus/min/max — returns parsing error
- More than 100 dimensions submitted — returns array size error
- Requirement min greater than requirement max — returns invalid requirement error
- sigmaLevel or reportSigma outside 0.5–10 range — returns bounds error
- Conflicting dimension fields (e.g. both tol and min/max) — may return ambiguous input error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns the nominal gap, minimum and maximum gap under both worst-case and RSS methods, the sigma level used, the name of the dominant contributing dimension, a pass/fail status against any provided requirement, and labeled assumptions about the RSS calculation. Both results are always reported regardless of which method is used for the status decision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "unit": {
   "type": "string",
   "maxLength": 16,
   "description": "Label for the single unit all numbers share (not converted)."
  },
  "method": {
   "enum": [
    "worst-case",
    "rss"
   ],
   "type": "string",
   "description": "Which result decides status against the requirement (default worst-case). Both are always reported."
  },
  "dimensions": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "max": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000,
      "description": "Largest allowed size (limits form, with min)."
     },
     "min": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000,
      "description": "Smallest allowed size (limits form, with max)."
     },
     "tol": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0,
      "description": "Symmetric bilateral tolerance (nominal ± tol)."
     },
     "name": {
      "type": "string",
      "maxLength": 80,
      "description": "Label used in witnesses."
     },
     "plus": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0,
      "description": "Upper deviation magnitude."
     },
     "sign": {
      "enum": [
       1,
       -1
      ],
      "type": "integer",
      "description": "+1 adds the dimension to the gap (default), -1 subtracts it."
     },
     "minus": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0,
      "description": "Lower deviation magnitude."
     },
     "nominal": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": -1000000000,
      "description": "Nominal size."
     }
    }
   },
   "maxItems": 100,
   "minItems": 1,
   "description": "At most 100. Give nominal with tol, or nominal with plus and/or minus (unilateral: one of them), or min and max."
  },
  "sigmaLevel": {
   "type": "number",
   "maximum": 10,
   "minimum": 0.5,
   "description": "RSS: each tolerance is this many sigma (default 3)."
  },
  "reportSigma": {
   "type": "number",
   "maximum": 10,
   "minimum": 0.5,
   "description": "RSS: report the gap at this many sigma (default equals sigmaLevel)."
  },
  "requirement": {
   "type": "object",
   "properties": {
    "max": {
     "type": "number",
     "maximum": 1000000000,
     "minimum": -1000000000,
     "description": "Gap must be at most this."
    },
    "min": {
     "type": "number",
     "maximum": 10000
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-tolerance-stack-analyzer-367097ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
