Skip to main content
Glama

Simple House Planner

Stair calculator

calculate_stairs
Read-only

Use this when someone asks how many stairs or steps they need, how to build or size a staircase, a stair's rise and run, stringer length or stairwell opening, or whether a stair meets code. Calculates a stair that climbs a floor-to-floor height in equal steps: the number of risers, riser height, tread depth, total run, pitch, stringer length, stairwell opening and floor space, straight or with an L or U landing, checked against a stair rule. Rules: irc2021 (United States), ukPartK (England), din18065 (Germany), cte (Spain), dm236 (Italy), nbr9050 (Brazil), blondel (the comfort rule used in France).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "rise": "<rise>",
      "rules": "<rules>"
    },
    "name": "calculate_stairs"
  }
}

Input Schema

NameRequiredDescriptionDefault
riseYesHeight from finished floor to finished floor, in millimeters; at least 300.
firstNoRisers before the landing of an L or U stair.
floorNoThickness of the upper floor, for the size of the opening, in millimeters.
riserNoRiser height to aim for, in millimeters.
rulesYesThe stair rule of the country where the stair is built.
shapeNoStraight, or an L or U stair with a landing; straight when left out.
treadNoA fixed tread depth, in millimeters.
widthNoClear width of the stair, in millimeters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/destructive, so the description's added value is the computation model: equal-step division of a floor-to-floor rise, landings for L/U shapes, and code-rule checking. It could still say more about defaults for optional inputs, but it goes well beyond the annotations.

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 use case, then what is computed, then the rule catalog — a sensible order. It is dense and the output list is long, but every clause carries information; nothing is filler.

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

Completeness4/5

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

With eight parameters, no output schema, and a mix of required and optional inputs, the description does the necessary work of naming the returned quantities and the supported stair shapes. Only gaps are unit conventions on returns and default handling of optional inputs like riser or tread.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description earns above baseline by unpacking each rule code into a country/convention (irc2021=US, ukPartK=England, blondel=French comfort rule), which is meaning the bare enum alone does not convey.

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?

States a specific verb+resource ('Calculates a stair that climbs a floor-to-floor height') and enumerates the exact outputs produced (risers, riser height, tread depth, total run, pitch, stringer length, stairwell opening). This clearly separates it from siblings like calculate_ramp or calculate_roof_pitch.

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?

Opens with concrete triggering questions ('how many stairs or steps they need', 'whether a stair meets code'), which gives the agent strong when-to-use signals. It does not name an exclusion or an alternative tool, so guidance is clear but not 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.

Resources