Skip to main content
Glama
TwoCut Calculators MCP Server

TwoCut Calculators MCP Server

Retaining Wall Block and Pallet Calculator

retaining_wall_blocks
Read-onlyIdempotent

Calculate segmental retaining wall blocks, caps, pallets, base-trench gravel, and drainage backfill for dry-stacked landscape walls.

Instructions

Calculate segmental retaining wall blocks, caps and pallets plus gravel for the base trench and drainage backfill (in tons). Courses come from the exposed height plus the buried first course (bury) divided by block_height; blocks per course from length ÷ block_length; cap_length 0 means no caps; base_width, base_depth and drain_width set the gravel volumes using rock_density. Use for dry-stacked landscape retaining walls. For mortared CMU walls use concrete_block_wall; for brick use brick_wall; for a gravel area use gravel. Read-only calculation with no side effects; the same inputs always give the same result. Every input is optional and falls back to the calculator page default; units is "us" (default) or "metric". Returns headline (amount to buy), summary lines, numbered worked steps, inputs_used and calculator_url.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "retaining_wall_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
buryNoBuried depth of the first course (about 1 in per ft of wall height). Unit: in (US) / cm (metric). Default (US units): 3.
unitsNoUnit system for every length/area/volume input: "us" (feet, inches, ft², ft³) or "metric" (m, cm or mm, m², m³). Defaults are converted when "metric" is chosen.us
wasteNoExtra for cuts. Unit: % (US) / % (metric). Default (US units): 5.
heightNoExposed wall height. Unit: ft (US) / m (metric). Default (US units): 3.
lengthNoWall length. Unit: ft (US) / m (metric). Default (US units): 40.
cap_priceNoPrice per cap. Unit: $ (US) / $ (metric). Optional, leave out to skip.
base_depthNoGravel base depth. Unit: in (US) / cm (metric). Default (US units): 6.
base_widthNoBase trench width. Unit: in (US) / cm (metric). Default (US units): 24.
cap_lengthNoCap unit length (0 = no caps). Unit: in (US) / cm (metric). Default (US units): 12.
rock_priceNoGravel price per US ton. Unit: $ (US) / $ (metric). Optional, leave out to skip.
block_priceNoPrice per block. Unit: $ (US) / $ (metric). Optional, leave out to skip.
drain_widthNoDrainage gravel behind the block. Unit: in (US) / cm (metric). Default (US units): 12.
block_heightNoInstalled block height. Unit: in (US) / cm (metric). Default (US units): 6.
block_lengthNoInstalled block length. Unit: in (US) / cm (metric). Default (US units): 12.
rock_densityNoGravel density (from your supplier). Unit: US ton/yd³ (US) / t/m³ (metric). Default (US units): 1.4.
blocks_per_palletNoBlocks per pallet. Default (US units): 72.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the 'read-only, no side effects, same inputs give same result' sentence mostly restates structured data. However, the description adds real behavioral context beyond annotations: the computational model for courses and cap derivation, and that every input is optional and falls back to the calculator page default. That fallback behavior is not inferable from the annotations and is the most useful disclosure here.

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 description is front-loaded with the calculation and immediately followed by routing guidance. It is dense and reads as one long paragraph with the formula chain packed in, but nearly every clause carries information an agent needs. Slightly tighter grouping of the formula details would improve 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?

With 16 optional parameters and no output schema, the description still closes the key gaps: it states all inputs are optional with defaults, explains the units option, and enumerates the return payload (headline, summary lines, numbered worked steps, inputs_used, calculator_url). An agent can call it correctly and interpret the response from this text alone.

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. The description earns above baseline by documenting cross-parameter semantics the schema cannot express: cap_length 0 means no caps, and base_width, base_depth, drain_width, and rock_density together drive the gravel volume in tons. It also clarifies that units switches defaults to metric.

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 opens with a specific verb and resource set: it calculates retaining wall blocks, caps, pallets, and gravel tonnage. It then describes the exact geometry that drives the result (courses from exposed height plus buried course divided by block_height, blocks per course from length ÷ block_length). This separates it cleanly from the sibling wall-material calculators without needing their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the correct use case ('dry-stacked landscape retaining walls') and names three explicit alternatives with the condition that selects each: concrete_block_wall for mortared CMU, brick_wall for brick, gravel for a gravel area. No inference is required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.