Skip to main content
Glama

TidyUse Home & Garden Calculators

Stair Calculator

calculate_stair
Read-onlyIdempotent

Calculate staircase risers, exact riser height (to nearest 1/16 in), treads, total run, stringer length, angle, and IRC code check.

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": {
      "totalRise": "<totalRise>"
    },
    "name": "calculate_stair"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNous
maxRiserNoMax riser height (in in us, default 7.75; cm in metric, default 19.7).
totalRiseYesTotal vertical rise floor-to-floor (in in us, cm in metric).
treadDepthNoTread depth (in in us, default 10; cm in metric, default 25.4).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this as read-only, idempotent, non-destructive, and closed-world. The description adds useful behavioral context beyond that by disclosing exact riser height precision to the nearest 1/16 inch and inclusion of an IRC code check, though it does not describe return structure or failure behavior.

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

Conciseness5/5

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

The description is a single front-loaded sentence listing exactly what is calculated, with no redundant or filler wording. Every element earns its place.

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 no output schema, the description appropriately names the computed results including risers, treads, run, stringer length, angle, and IRC check. It leaves some details of the IRC check and return format unstated, but is complete enough for an agent to know what the tool produces.

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

Parameters3/5

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

Schema description coverage is 75%, with totalRise, maxRiser, and treadDepth documented and unit defined via enum/default. The description does not add input-parameter meaning beyond the schema, but the schema already carries most of the semantic burden.

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?

The description uses a specific verb, 'Calculate', with the precise resource 'staircase' and enumerates the computed outputs: risers, exact riser height, treads, total run, stringer length, angle, and IRC code check. This clearly distinguishes it from sibling calculators such as calculate_deck or calculate_roof_pitch by resource.

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

Usage Guidelines3/5

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

The staircase-specific purpose implies when to use it, but there is no explicit guidance on when to choose this over alternatives or on assumptions such as unit selection. The implied usage is adequate for a niche calculator but not fully explicit.

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