Skip to main content
Glama

Simple House Planner

Roof pitch calculator

calculate_roof_pitch
Read-only

Use this when someone asks for a roof pitch in degrees, percent or rise per 12, a rafter length, a ridge height or a roof area. Converts a roof pitch given as rise per 12, degrees, percent or a rise over a run into the other forms and the roof multiplier (length along the slope per unit of level run). With the building's width, it gives the ridge height above the walls and the rafter length with the overhang of a gable or shed roof; with the length too, the area on plan with the overhangs and the roof area in square meters.

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": {
      "pitch": "<pitch>"
    },
    "name": "calculate_roof_pitch"
  }
}

Input Schema

NameRequiredDescriptionDefault
rakeNoOverhang at the gable ends, in millimeters; the eaves overhang when left out.
pitchYesThe pitch, given one way.
shapeNoThe roof shape, for the ridge height and rafters; gable when left out.
widthNoWidth of the building across the slope, outside wall to outside wall; without it, only the pitch is converted, in millimeters.
lengthNoLength of the building along the ridge, for the roof area, in millimeters.
overhangNoOverhang at the eaves, measured level from the wall, in millimeters; none when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds genuine behavioral context: defaults for omitted inputs (gable shape, eaves overhang when rake is omitted, pitch-only conversion without width) and the units of results (square meters, millimeters). What it does not state — precision/rounding of returned values or how the multiplier is reported — is minor for a deterministic calculator.

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?

It is front-loaded with a 'Use this when...' trigger and wastes no sentences, but the second sentence is a long, clause-chained run-on that packs conversion forms, defaults and geometry outputs together. It earns its length with information, yet could be split for faster scanning.

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 six-parameter deterministic calculator with no output schema, the description fully covers inputs, defaults, units and the set of returned values. An agent has everything needed to decide which optional parameters to supply and what results to expect.

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 a baseline of 3 applies, but the description goes further by explaining parameter interdependence: width unlocks ridge height and rafter length, adding length unlocks plan area and roof area, and rake maps to gable-end overhang. That relational meaning is not obvious from the schema alone.

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 names a specific verb ('Converts a roof pitch') and enumerates concrete outputs: other pitch forms, the roof multiplier, ridge height, rafter length and roof area. An agent can tell this is a pitch/geometry calculator rather than the materials-oriented sibling calculate_roofing without opening the schema.

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?

The opening sentence gives explicit trigger conditions ('Use this when someone asks for a roof pitch in degrees, percent or rise per 12, a rafter length, a ridge height or a roof area'). It also implies the minimum-usage case ('without it, only the pitch is converted'), but it never names an alternative tool for material takeoffs, so routing to a sibling is left to inference.

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