Skip to main content
Glama

Simple House Planner

Insulation calculator

calculate_insulation
Read-only

Use this when someone asks how much insulation an attic, walls or a floor needs, which R-value, or how many batts or bags of blown-in insulation. Calculates the insulation for an attic, outside walls or a floor. The area is length × width, or for walls length × height less the doors (36 × 80 in) and windows (36 × 60 in) unless given. The target is the US R-value of the climate zone from the 2021 IECC Table R402.1.3, as ENERGY STAR repeats it: attic R-30 (zone 1), R-49 (2, 3), R-60 (4 to 8); floor R-13 (1, 2), R-19 (3, 4), R-30 (5 and 4C, 6), R-38 (7, 8); wall cavity R-13 (1, 2), R-20 (3), R-20 plus R-5 continuous insulation (4 to 8, returned as ci). In an attic the R-value to add is the target less the existing R-value. Batts (Owens Corning EcoTouch sizes and packages): the batt area is the area × batt width ÷ framing spacing, because batts fill only the bays between studs or joists; one layer for walls and floors, and in an attic as many layers as the R-value to add needs, the bottom one between the joists on a bare floor and the others over the whole floor; the result gives pieces and packages, rounded up. Blown-in (attic only): the chart row of the bag at or above the R-value to add, with the least installed thickness and the bags (area ÷ coverage a bag, rounded up); fiberglass is Owens Corning AttiCat (R-13 to R-60), cellulose Greenfiber Sanctuary (R-11 to R-60). It also returns the R-value when done and whether it reaches the target. Lengths are in millimeters, areas in square meters, R-values in US units (RSI = R × 0.1761102, NIST SP 811).

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": {
      "place": "<place>",
      "kind": "<kind>"
    },
    "name": "calculate_insulation"
  }
}

Input Schema

NameRequiredDescriptionDefault
bagNoAttic floor one bag covers at the R-value to add, in square meters, instead of the chart's.
areaNoArea in square meters, used instead of the sizes; for walls, before the doors and windows.
battNoOwens Corning EcoTouch batt or roll: r13, r15, r19, r21, r30, r38, r19roll, r30roll; the thinnest that reaches the target when left out.
fillNofiberglass: Owens Corning AttiCat 27.5 lb bag; cellulose: Greenfiber Sanctuary 25 lb bag. fiberglass when left out.
kindYesbatts: batts or rolls between the framing; blown: loose fill blown onto an attic floor (attic only).
zoneNoUS IECC climate zone whose R-value is the target: 1, 2, 3, 4 (4A and 4B), 5 (5 and marine 4C), 6, 7 (7 and 8).
doorsNoNumber of doors to leave out; none when left out.
placeYesattic: the attic floor; walls: the outside walls; floor: a floor over a crawl space, garage or open air.
widthNoAttic or floor width, in millimeters.
heightNoWall height, in millimeters.
lengthNoAttic or floor length, or the length of all walls, in millimeters.
targetNoTarget US R-value (°F·ft²·h/Btu), instead of the zone's; RSI = R × 0.1761.
spacingNoStuds or joists on center: 400 for 16 in, 600 for 24 in; 400 when left out.
windowsNoNumber of windows to leave out; none when left out.
coverageNoArea of batt one package holds, in square meters, as printed on it, instead of the batt's.
existingNoUS R-value already in the attic; none when left out.
doorWidthNoWidth of one door; 914.4 (36 in) when left out, in millimeters.
doorHeightNoHeight of one door; 2032 (80 in) when left out, in millimeters.
windowWidthNoWidth of one window; 914.4 (36 in) when left out, in millimeters.
windowHeightNoHeight of one window; 1524 (60 in) when left out, 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?

The annotations already establish readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds meaningful behavioral context: results are rounded up, blown-in is attic only, the tool returns the resulting R-value and whether it reaches the target, and layer behavior differs for attic batts. It does not fully specify output field names, but the calculation behavior is substantially disclosed.

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?

The use case is front-loaded, and the dense detail is mostly domain-necessary for a 20-parameter calculator. There is minor redundancy, such as the second sentence restating the first, and the single long paragraph could be structured better, but it does not waste many words.

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 complex calculator with 20 parameters and no output schema, the description explains the key outputs: pieces and packages for batts, bags for blown-in, the resulting R-value, and whether the target is met. It stops short of naming the exact return fields, which is a minor gap, but an agent has enough information to invoke and interpret the result reasonably.

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 description coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning beyond the individual schema entries: area is length × width or wall length × height less doors/windows, existing R-value is subtracted from the attic target, batt area is area × batt width ÷ framing spacing, and target overrides zone. These relationships help an agent understand how parameters interact rather than merely repeating their definitions.

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 and resource: "Calculates the insulation for an attic, outside walls or a floor," and immediately scopes it to R-value and batt/bag quantity questions. An agent can distinguish this from unrelated calculators 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?

It gives a clear trigger: "Use this when someone asks how much insulation an attic, walls or a floor needs, which R-value, or how many batts or bags of blown-in insulation." It does not name when not to use the tool or list alternatives, but the usage context is explicit and sufficient.

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