Skip to main content
Glama

TwoCut Construction & DIY Calculators

Stair Rise, Run and Stringer Geometry Calculator

stair_stringer
Read-onlyIdempotent

Calculate stair geometry: number of risers and treads, individual rise and run, total run, stringer length and number of stringers. total_rise is the finished floor-to-floor height; risers are chosen so each rise stays at or under max_rise (or set riser_count); tread_run is each tread depth; stair_width and stringer_spacing set the stringer count; floor_depth and run_limit check headroom and available floor space. Use to lay out a straight stair. Check results against your local building code. For deck boards and joists use deck. Read-only calculation with no side effects; the same inputs always give the same result. Every input is optional and falls back to the calculator page default; units is "us" (default) or "metric". Returns headline (amount to buy), summary lines, numbered worked steps, inputs_used and calculator_url.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stair_stringer"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNoUnit system for every length/area/volume input: "us" (feet, inches, ft², ft³) or "metric" (m, cm or mm, m², m³). Defaults are converted when "metric" is chosen.us
max_riseNoTarget maximum individual rise. Unit: in (US) / cm (metric). Default (US units): 7.75.
run_limitNoFloor space available for the run (0 = no limit). Unit: in (US) / cm (metric). Default (US units): 0.
tread_runNoIndividual tread depth (run). Unit: in (US) / cm (metric). Default (US units): 10.
total_riseNoFinished floor-to-floor rise. Unit: in (US) / cm (metric). Default (US units): 108.
board_priceNoPrice per stringer board. Unit: $ (US) / $ (metric). Optional, leave out to skip.
floor_depthNoUpper floor depth at the opening (joist + subfloor). Unit: in (US) / cm (metric). Default (US units): 10.
riser_countNoNumber of risers (0 = work it out from the maximum rise). Default (US units): 0.
stair_widthNoStair width. Unit: in (US) / cm (metric). Default (US units): 36.
stringer_spacingNoMaximum stringer spacing. Unit: in (US) / cm (metric). Default (US units): 16.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the sentence "Read-only calculation with no side effects; the same inputs always give the same result" mostly repeats structured data. However it adds genuinely new behavioral context: every input is optional and falls back to the calculator page default, and units are interpreted as "us" or "metric" across all lengths. No output schema exists, so the return-value inventory (headline, summary, worked steps, inputs_used, calculator_url) is real added information.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the computation and its outputs, then parameter roles, then usage routing and return shape — a sensible order. A few sentences (the read-only/idempotency restatement) duplicate annotations and could be cut, but nothing is padded and the density is appropriate for a 10-parameter calculator.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, zero-required calculator with no output schema, the description covers defaulting behavior, unit handling, the riser-derivation rule, and a full list of returned fields. An agent has everything needed to call it correctly and interpret the response without further sources.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline would be 3, but the description contributes semantics the schema does not: it explains the dependency chain — risers are derived so each rise stays at or under max_rise unless riser_count is set, tread_run is the per-tread depth, and stair_width plus stringer_spacing jointly determine the stringer count. It also clarifies the roles of floor_depth and run_limit as headroom/floor-space constraints rather than dimensions. This is meaning beyond per-parameter field docs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Calculate stair geometry") and enumerates exactly what is computed: risers, treads, rise, run, total run, stringer length, stringer count. It also names the sibling it is not ("For deck boards and joists use deck"), so an agent can separate it from the deck calculator without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear scope statement ("Use to lay out a straight stair"), which implicitly excludes curved/L-shaped layouts, plus a caveat to verify against local building code and an explicit routing to `deck` for boards and joists. It lacks a named alternative for non-straight stair geometry, so guidance is strong but not fully exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.