Skip to main content
Glama

Simple House Planner

Ramp calculator

calculate_ramp
Read-only

Use this when someone plans a wheelchair ramp or an accessible ramp and asks how long it must be or whether it meets the ADA or a building rule. Calculates a ramp that climbs a height in equal runs with level landings: the slope, the number and length of the runs, the landings, the length with landings and the floor space, straight or as a switchback, checked against a ramp rule. Without a slope, it finds the shortest ramp the rule allows. Rules: ada2010 (United States, 2010 ADA Standards), admHomes (England, Approved Document M, M4(2) dwellings), admBuildings (England, Approved Document M, other buildings), din18040 (Germany), cte (Spain, CTE DB-SUA accessible route).

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_ramp"
  }
}

Input Schema

NameRequiredDescriptionDefault
riseYesHeight the ramp climbs, in millimeters.
rulesYesThe ramp rule of the country and building type.
slopeNoSlope of every run, rise over going, such as 0.0625 for 1:16; without it, the shortest ramp the rule allows.
widthNoClear width of the ramp; the rule's minimum when left out, in millimeters.
layoutNoStraight, or a switchback that turns back at each landing; straight when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, non-destructive, closed-world), so the description rightly spends its words on computation semantics: defaults when slope, width, or layout are omitted, and how switchback turns behave at each landing. It even discloses the full set of computed outputs, which matters since there is no output schema.

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 trigger scenario and computation list, with no filler sentences. The trailing rules enumeration is dense but each entry earns its place by disambiguating enum values; a lightly structured list would read faster than the single long paragraph.

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?

With no output schema, the description carries the burden of describing returns and does so explicitly (slope, run count and lengths, landings, total length with landings, floor space, straight/switchback). Defaults for all three optional parameters are stated, leaving no ambiguity about omitted inputs.

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, but the description adds genuine meaning: it expands each rule enum value with its jurisdiction and standard (ada2010 = 2010 ADA Standards US, admHomes = England ADM M4(2) dwellings vs admBuildings = other buildings, din18040, cte). That jurisdiction mapping is real interpretive value the bare enum keys do not carry.

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 leads with a specific verb and resource tied to a real user task ('plans a wheelchair ramp ... asks how long it must be or whether it meets the ADA'), then enumerates exactly what it computes: slope, number and length of runs, landings, length with landings, floor space, straight or switchback. It is unambiguous against siblings like calculate_stairs or calculate_deck.

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?

'Use this when someone plans a wheelchair ramp or an accessible ramp and asks how long it must be or whether it meets the ADA or a building rule' gives a clear triggering scenario. It also states a branch condition — omit slope to get the shortest rule-compliant ramp. It stops short of naming exclusions or a sibling alternative, but the ramp/accessibility framing makes scope evident.

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