{"uid":"cap_3my75GcTRPwgK4Dwe3DaU","slug":"writerslogic-tolerance-stack-analyzer-367097ae","name":"WritersLogic Tolerance Stack Analyzer","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/tolerance-stack?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":1000000000,"minimum":-1000000000,"description":"Gap must be at least this."}},"description":"Allowed gap range."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6Drkc44Ts9q_jp3HuxZ9O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Assembly clearance check for mating parts","prompt":"I have a linear stack with 4 dimensions in millimeters: a housing bore of 25 ± 0.05 mm (sign +1), a shaft diameter of 24.8 with plus 0.0 and minus 0.1 mm (sign -1), a retaining clip of 0.1 ± 0.02 mm (sign -1), and a thermal washer of 0.05 ± 0.01 mm (sign -1). The gap must be at least 0.0 mm. Use worst-case method and tell me if it passes, what the min/max gap is, and which part is the dominant contributor."},{"title":"RSS sigma-level validation for high-volume production","prompt":"For my 5-dimension stack in inches — all adding to the gap: A is 1.000 ± 0.005, B is 0.500 ± 0.003, C is 0.250 ± 0.002, D is 0.125 ± 0.001, E is 0.0625 ± 0.0005 — run an RSS analysis at 3 sigma, report at 6 sigma, and check that the gap stays between 0.010 and 0.040 inches. Which dimension dominates?"},{"title":"Unilateral tolerance stackup for press-fit slot","prompt":"Check my press-fit slot stack in micrometers using worst-case: Slot width is 500 with plus 10 and minus 0 (sign +1), pin diameter is 498 with plus 0 and minus 5 (sign -1), and coating thickness is 1 ± 0.5 (sign -1). The gap must be between -3 and 15 micrometers. Does it pass, and what's the min and max gap?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:33:06.714Z","isFirstParty":false,"canonicalSlug":"writerslogic-tolerance-stack-analyzer-367097ae"}