Skip to main content
Glama

Simple House Planner

Roofing calculator

calculate_roofing
Read-only

Use this when someone asks how many squares or bundles of shingles, underlayment rolls or roofing nails a roof needs. Calculates asphalt shingle roofing for a gable, hip or shed roof over a rectangular building, or for a roof surface given by its area. Roof area: the plan with overhangs, (length + 2 × rake overhang) × (width + 2 × eaves overhang), times the slope factor √(1 + (rise/run)²); a hip roof has the eaves overhang all around and the same area as a gable roof of the same pitch. It returns the area, the area with waste (10 % gable and shed, 15 % hip unless given; GAF adds 10 %, Owens Corning and IKO 10 to 15 %), squares of 100 sq ft, bundles (33.33 sq ft each unless given, GAF), underlayment rolls (synthetic 10 squares, No. 15 felt 4, No. 30 felt 2; two layers below 4/12, IRC R905.2), the starter strip for the eaves and rakes (120 ft a bundle, GAF Pro-Start), the ridge and hip cap (ridge = longer side − shorter side on a hip roof; hips √(rafter² + run²) each; 25 ft a bundle, GAF Seal-A-Ridge), the drip edge for eaves and rakes in 10 ft pieces lapped 2 in (IRC R905.2.8.5), nails (320 a square with 4 nails a shingle, 480 with 6, Owens Corning), and whether the pitch reaches the 2/12 least for shingles (IRC R905.2). Give in12 or degrees. Lengths are in millimeters and areas in square meters (1 sq ft = 0.09290304 m²).

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": {
      "shape": "<shape>"
    },
    "name": "calculate_roofing"
  }
}

Input Schema

NameRequiredDescriptionDefault
capNoRidge and hip one bundle of cap shingles covers; 7620 (25 ft) when left out, in millimeters.
areaNoRoof surface measured on the roof, in square meters, used instead of length and width.
in12NoPitch as rise per 12 of run, such as 6 for 6/12; give this or degrees.
rakeNoOverhang at the gable ends or the sloping sides of a shed roof, in millimeters; the eaves overhang when left out.
rollNoRoof area one roll of underlayment covers, in square meters, instead of the chosen roll's.
eavesNoWith area: length of all eaves, in millimeters; none when left out.
nailsNoNails in each shingle: 4, or 6 for high wind and mansards; 4 when left out.
rakesNoWith area: length of all rakes, in millimeters; none when left out.
shapeYesgable: two slopes from a ridge; hip: four slopes, the ridge along the longer side; shed: one slope across the width.
wasteNoPercent added to shingles and underlayment; 10 for gable and shed, 15 for hip when left out.
widthNoWidth of the building across the slope, in millimeters.
bundleNoRoof area one bundle of shingles covers, in square meters; 3.0966 (33.33 sq ft, 3 bundles a square) when left out.
lengthNoLength of the building along the ridge, outside of wall to outside of wall, in millimeters.
ridgesNoWith area: length of all ridges and hips, in millimeters; none when left out.
degreesNoPitch in degrees; give this or in12.
starterNoEave and rake one bundle of starter strip covers; 36576 (120 ft) when left out, in millimeters.
dripEdgeNoLength of one piece of drip edge; 3048 (10 ft) when left out, in millimeters.
overhangNoOverhang at the eaves, measured level from the wall, in millimeters; none when left out.
starterRakesNoStarter strip along the rakes as well as the eaves; true when left out.
underlaymentNosynthetic: 10 squares a roll; felt15: No. 15 felt, 4 squares; felt30: No. 30 felt, 2 squares. synthetic when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish readOnly, non-destructive, closed-world behavior, and the description adds substantial method disclosure: the area formula, waste defaults, IRC references, and a full enumeration of returned quantities. However it does not explain pagination or precision/rounding of results, and much of the added text is reference detail rather than operational context an agent needs to invoke it safely.

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

Conciseness3/5

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

Purpose is front-loaded correctly, but the body is a single dense run-on paragraph mixing formula, codes, brand trivia and unit conversion. The GAF/Owens Corning/IKO digressions add length without helping an agent choose or shape the call.

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?

For a 20-parameter tool with no output schema, the description carries the burden well by enumerating every returned quantity (area, squares, bundles, rolls, starter, cap, drip edge, nails, pitch check) and fixing units in millimeters and square meters. It is close to complete, with minor gaps around rounding and error cases.

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 earns a bump by explaining cross-parameter relationships the schema does not: area substitutes for length/width, in12 versus degrees are alternatives, hip roofs use eaves overhang all around, and brand-specific waste/bundle defaults. It still omits some inputs (ridges, rakes, eaves, starterRakes) from the narrative.

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

Purpose4/5

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

States a concrete verb+resource (calculates asphalt shingle roofing) and scopes it to gable, hip, shed roofs or a supplied area, so an agent can tell it is a materials takeoff rather than a geometry helper. It does not name any sibling, notably calculate_roof_pitch, so it falls short of full sibling differentiation.

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 an explicit trigger: 'Use this when someone asks how many squares or bundles of shingles, underlayment rolls or roofing nails a roof needs.' That gives clear positive conditions, but there are no exclusions or named alternatives for cases like pitch-only or floor-area questions.

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