Skip to main content
Glama

Simple House Planner

Deck calculator

calculate_deck
Read-only

Use this when someone plans a deck and asks how many deck boards, joists, posts or screws they need. Calculates the materials for a rectangular deck: the rows of boards ((width + gap) ÷ (board width + gap), rounded up), the length of all boards with waste, the boards of the given length to buy, the joists (length ÷ spacing, rounded up, plus one; each as long as the deck's width), and the screws (two for each board at each joist, IRC R507.7) or hidden clips (one for each board at each joist). Boards run straight or at 45°; diagonal boards take the deck area ÷ (board width + gap). It also returns the widest joist spacing for the decking and layout, and whether the spacing is within it (limit and ok are absent where the source gives no limit for the layout): 5/4 in wood 16 in straight and 12 in diagonal, 2 in wood 24 in (2021 IRC Table R507.7); composite 16 in straight and 12 in diagonal (Trex); GD Holz solid wood 400 mm for 20 or 21 mm boards, 500 mm for 26 mm, 700 mm for 40 mm (Habisreutinger laying guide 2024); Weldom 500 mm, 400 mm for softwood thinner than 27 mm; Neowood 350 or 400 mm by range, 100 mm less at 45°; Tarimatec 350 mm, 250 mm in a tropical climate; Déco 400 mm with visible screws (30 to 40 cm), 300 mm for ipê and 400 mm for teak with clips; Ecodeck 300 mm. doubled counts the second joists under board ends, which joists includes. Waste when not given: 10 % straight, 15 % diagonal. It does not size joists, beams, posts, footings or the ledger; those follow IRC R507 or AWC DCA 6 and the local code. The area is 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": {
      "length": "<length>",
      "width": "<width>",
      "decking": "<decking>",
      "boardWidth": "<boardWidth>",
      "boardLength": "<boardLength>"
    },
    "name": "calculate_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
gapNoGap between boards, in millimeters; when left out 3.175 (1/8 in) for wood54 and wood2, 4.7625 (3/16 in) for composite, 6 for the gdHolz boards, 5 for weldom, weldomSoftwood and the deco boards. The other deckings have no gap of their own and need it.
wasteNoPercent added to the boards; when left out 10 for straight and 15 for diagonal.
widthYesSide of the deck along the joists, out from the house, in millimeters.
layoutNoBoards square to the joists, or at 45° to them; straight when left out.
lengthYesSide of the deck across the joists; the boards of a straight layout run along it, and on a deck at a house it is the side along the wall, in millimeters.
deckingYeswood54: wood boards 5/4 in thick; wood2: wood boards 2 in thick; composite: Trex composite boards 1 in thick; gdHolz21, gdHolz26, gdHolz40: solid wood boards 20 or 21, 26 and 40 mm thick (GD Holz); weldom: wood boards in France; weldomSoftwood: softwood boards thinner than 27 mm (Weldom); neowood350, neowood400: Neowood composite ranges; tarimatec, tarimatecTropical: Tarimatec composite in a temperate and a tropical climate; decoScrews: wood boards with visible screws, decoIpe and decoTeak: ipê and teak boards with clips (Déco); ecodeck: Ecodeck composite.
spacingNoJoist spacing on center, such as 406.4 (16 in) or 400; the widest the decking allows when left out, in millimeters.
fastenerNoTwo screws for each board at each joist, or one hidden clip; screws when left out.
boardWidthYesActual width of one board, such as 139.7 (5 1/2 in) for a nominal 6 in board, in millimeters.
boardLengthYesLength of the boards as sold, such as 4876.8 (16 ft), in millimeters.
jointJoistsNoAdds a second joist under each line of board ends of a straight layout, (length ÷ boardLength, rounded up) − 1 of them, so that each end rests on its own joist (Trex at butt joints; GD Holz for solid wood).
fastenerRateNoFasteners per square meter of deck as a maker states them, such as 25 clips (Tarimatec, Ecodeck); when left out they are counted at each board and joist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds real behavioral detail on top, including the default waste (10% straight, 15% diagonal), the closing rule that 45° boards are computed as area ÷ (board width + gap), and the important edge case that 'limit and ok are absent where the source gives no limit for the layout'. The absence of any statement about the exact response shape keeps it below 5.

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

Conciseness2/5

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

The purpose sentence is correctly front-loaded, but the body then dumps a long enumeration of eight decking sources' maximum joist spacings (Trex, GD Holz, Weldom, Neowood, Tarimatec, Déco, Ecodeck, IRC Table R507.7) that belongs in parameter documentation or return values, not in a selection-time description. Much of that reference data does not help an agent decide to call the tool or how to fill its arguments.

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 12-parameter calculator with no output schema, the description does the necessary work: it explains what is returned (board rows, boards to buy, joists, fasteners, spacing limit and ok flag), how defaults are chosen, and where limits may be absent. The main remaining gap is that the concrete shape and units of the response object are only loosely implied ('The area is in square meters').

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 100%, so the schema already documents units, defaults and enum meanings, which sets the baseline at 3. The description adds some relational meaning (waste defaults, how layout changes the board count), but it also refers to a parameter as 'doubled' while the schema's field is named 'jointJoists', a naming mismatch that can confuse parameter mapping rather than help it.

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?

States a specific verb and resource ('Calculates the materials for a rectangular deck') and enumerates the exact outputs: board rows, board length with waste, boards to buy, joists, and screws or clips. The scope (rectangular deck, straight or 45° layout, decking and joist spacing) is precise enough that an agent can distinguish it from the other calculate_* siblings 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?

Opens with an explicit trigger ('Use this when someone plans a deck and asks how many deck boards, joists, posts or screws they need') and adds an explicit exclusion: it does not size joists, beams, posts, footings or the ledger, which follow IRC R507 or AWC DCA 6. That is a clear when/when-not statement; the only gap is that no alternative tool is named, though none of the listed siblings covers structural sizing either.

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