{"uid":"cap_haY_jXUg78RTTLr2JnDNH","slug":"stair-layout-calculator-f2c1a182","name":"Stair Layout Calculator","description":"Stair layout from total rise: number of risers, exact riser height, total run, stringer length, angle and a code check.","url":"https://construction-calc.x402tookit.com/stair-calc?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["totalRiseIn"],"properties":{"totalRiseIn":{"type":"number","description":"Floor-to-floor height in inches"},"treadDepthIn":{"type":"number","description":"Tread depth in inches, default 10"},"targetRiserIn":{"type":"number","description":"Preferred riser height, default 7.5"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"issues":{"type":["array","null"]},"risers":{"type":["null","number"]},"source":{"type":["null","string"]},"treads":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"angleDeg":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"totalRunFt":{"type":["null","number"]},"totalRunIn":{"type":["null","number"]},"comfortRule":{"type":["null","number"]},"treadDepthIn":{"type":["null","number"]},"comfortRuleOk":{"type":["boolean","null"]},"riserHeightIn":{"type":["null","number"]},"stringerLengthIn":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZgtEvwb7btY_Ozv7XcbPH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates stair layout from total rise: number of risers, exact riser height, tread depth, total run, stringer length, angle, and building code compliance check.","exampleAgentPrompt":"I need to lay out a staircase for a floor-to-floor height of 108 inches — can you calculate the number of risers, exact riser height, total run, stringer length, and angle, and tell me if it passes code? I'd like a tread depth of 10 inches and a target riser of 7.5 inches.","exampleUseCases":[{"title":"Deck stair design with code check","prompt":"I'm building stairs from my deck down to the yard — the total rise is 84 inches. Can you figure out how many risers I need, what the riser height should be, the total run, and whether it'll pass building code? Use a 10-inch tread depth."},{"title":"Interior staircase layout planning","prompt":"I'm framing an interior staircase with a floor-to-floor height of 120 inches. Calculate the riser count, exact riser height, stringer length, and the stair angle for me, and let me know if it meets code. I'd prefer a target riser of 7 inches."},{"title":"Code compliance check for existing stair design","prompt":"My stair total rise is 93 inches and I want to use 7.5-inch risers with 10-inch treads — can you run the stair layout calc and tell me if that configuration passes code, including the comfort rule result?"}],"resultDescription":"Returns a structured object with: number of risers and treads, exact riser height in inches, tread depth in inches, total run in both feet and inches, stringer length in inches, stair angle in degrees, a comfort rule value and pass/fail flag, a code compliance verdict with reasons, a list of any issues, a human-readable summary, and optional disclaimer or degraded-service flags.","failureModes":["Missing required totalRiseIn parameter returns an error","Very small or zero totalRiseIn values may produce nonsensical riser counts","Extremely large total rise values may exceed practical stair design limits","targetRiserIn values outside typical code range (4–8 inches) may trigger code failure flags","Non-numeric input for query parameters causes a validation error"],"whenToPreferThis":"Use this endpoint when you need to compute a complete stair layout from a known floor-to-floor height, including code compliance validation. It is purpose-built for construction planning and returns all critical stair geometry in a single call, making it ideal for agents assisting with residential or deck construction design. Prefer this over general math tools when you need building-code awareness alongside the geometric calculations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:47.065Z","isFirstParty":false,"canonicalSlug":"stair-layout-calculator-f2c1a182"}