Skip to main content
Glama
TwoCut Calculators MCP Server

TwoCut Calculators MCP Server

Flooring Carton Calculator

flooring_cartons
Read-onlyIdempotent

Calculate flooring cartons for up to 10 rooms from room dimensions and carton coverage, including waste, underlayment rolls and perimeter trim.

Instructions

Calculate flooring cartons (boxes) for 1 to 10 rectangular rooms: set rooms, then length/width, length_2/width_2 and so on. layout 0 adds waste, layout 1 (diagonal) adds diag_waste; carton_coverage is the area one carton covers. Also gives underlayment rolls (underlay_cov) and perimeter trim length minus doorway widths. Use for laminate, vinyl plank and engineered or solid wood floors sold by the carton. For ceramic or porcelain tile use tile_count; for carpet from a roll use carpet_roll; for leveling the subfloor use self_leveling_underlayment. 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": "flooring_cartons"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomsNoRooms or areas. Options: 1 = 1 room; 2 = 2 rooms; 3 = 3 rooms; 4 = 4 rooms; 5 = 5 rooms; 6 = 6 rooms; 7 = 7 rooms; 8 = 8 rooms; 9 = 9 rooms; 10 = 10 rooms.1
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): 10.
widthNoRoom width. Unit: ft (US) / m (metric). Default (US units): 12.
layoutNoLayout. Options: 0 = Straight (uses the extra above); 1 = Diagonal (uses the diagonal extra).0
lengthNoRoom length. Unit: ft (US) / m (metric). Default (US units): 15.
width_2NoRoom 2 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_3NoRoom 3 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_4NoRoom 4 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_5NoRoom 5 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_6NoRoom 6 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_7NoRoom 7 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_8NoRoom 8 width. Unit: ft (US) / m (metric). Default (US units): 0.
width_9NoRoom 9 width. Unit: ft (US) / m (metric). Default (US units): 0.
length_2NoRoom 2 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_3NoRoom 3 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_4NoRoom 4 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_5NoRoom 5 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_6NoRoom 6 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_7NoRoom 7 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_8NoRoom 8 length. Unit: ft (US) / m (metric). Default (US units): 0.
length_9NoRoom 9 length. Unit: ft (US) / m (metric). Default (US units): 0.
width_10NoRoom 10 width. Unit: ft (US) / m (metric). Default (US units): 0.
length_10NoRoom 10 length. Unit: ft (US) / m (metric). Default (US units): 0.
diag_wasteNoExtra for a diagonal layout. Unit: % (US) / % (metric). Default (US units): 15.
door_widthNoDoorway widths to leave out of the trim. Unit: ft (US) / m (metric). Default (US units): 3.
trim_priceNoTrim price per ft. Unit: $ (US) / $ (metric). Optional, leave out to skip.
carton_priceNoPrice per carton. Unit: $ (US) / $ (metric). Optional, leave out to skip.
underlay_covNoUnderlayment coverage per roll (from the label). Unit: ft² (US) / m² (metric). Optional, leave out to skip.
underlay_priceNoPrice per underlayment roll. Unit: $ (US) / $ (metric). Optional, leave out to skip.
carton_coverageNoCoverage per carton. Unit: ft² (US) / m² (metric). Default (US units): 20.

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?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so 'read-only calculation with no side effects; same inputs always give the same result' largely restates them. What the description does add beyond structure is the output contract (headline, summary lines, numbered worked steps, inputs_used, calculator_url) and the optional-with-page-defaults fallback behavior, which is genuinely useful. It does not mention rounding or how partial cartons are treated, which is the one calculation detail an agent might want.

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?

Front-loaded with the core action and the room/parameter convention, then usage routing, then exclusions, then behavior and return shape — a sensible order for a 31-parameter tool. A few clauses duplicate schema facts (units "us"/"metric", every input optional), but the density is defensible given the parameter count.

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 31-parameter, zero-required calculator with no output schema, the description covers the awkward parts: room-index naming, unit system switching, which waste field each layout uses, optional pricing/underlayment inputs that can be skipped, and an explicit enumeration of what comes back. Nothing an agent needs in order to call it correctly is missing.

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; the description earns an extra point by explaining cross-parameter relationships the schema does not: layout 0 consumes the waste extra while layout 1 (diagonal) consumes diag_waste, carton_coverage is the area one carton covers, and perimeter trim is reduced by doorway widths. The room-index convention (length_2/width_2 and so on) is also stated in prose rather than inferred from 20 similarly shaped fields.

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: calculate flooring cartons for 1 to 10 rectangular rooms, and it names the concrete inputs that drive the result (length/width pairs, layout, carton_coverage). It also distinguishes itself from tile_count, carpet_roll and self_leveling_underlayment, so an agent can pick it without inspecting any sibling schema.

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?

Explicit routing: 'Use for laminate, vinyl plank and engineered or solid wood floors sold by the carton', with three named alternatives for the adjacent cases (ceramic/porcelain tile, carpet from a roll, subfloor leveling). Both the when and the when-not are stated, nothing 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.