Skip to main content
Glama

TwoCut Construction & DIY Calculators

Carpet Roll Yardage Calculator

carpet_roll
Read-onlyIdempotent

Calculate carpet to order from a roll: strips, linear length and square yards for up to 3 rooms plus stairs. Each room is cut along room_length and covered across room_width by strips of usable_roll_width; end_allowance and side_allowance add trimming; stairs, stair_width, tread_depth and riser_height add stair pieces; doorways is subtracted from the tack strip length; waste adds extra length. Use for wall-to-wall carpet sold by the roll. For plank or laminate floors use flooring_cartons; for tile use tile_count. 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": "carpet_roll"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 linear order percentage. Unit: % (US) / % (metric). Default (US units): 0.
stairsNoCarpeted stairs (number of steps, 0 for none). Default (US units): 0.
doorwaysNoDoorway widths to skip for tack strip (total). Unit: ft (US) / m (metric). Default (US units): 0.
stair_widthNoStair width. Unit: ft (US) / m (metric). Default (US units): 3.
tread_depthNoTread depth. Unit: in (US) / mm (metric). Default (US units): 10.
riser_heightNoRiser height. Unit: in (US) / mm (metric). Default (US units): 7.75.
room_width_1NoRoom 1 width across strips. Unit: ft (US) / m (metric). Default (US units): 13.
room_width_2NoRoom 2 width across strips. Unit: ft (US) / m (metric). Default (US units): 10.
room_width_3NoRoom 3 width across strips. Unit: ft (US) / m (metric). Optional, leave out to skip.
end_allowanceNoExtra length per strip. Unit: ft (US) / m (metric). Default (US units): 0.5.
room_length_1NoRoom 1 cut direction length. Unit: ft (US) / m (metric). Default (US units): 15.
room_length_2NoRoom 2 cut direction length. Unit: ft (US) / m (metric). Default (US units): 12.
room_length_3NoRoom 3 cut direction length. Unit: ft (US) / m (metric). Optional, leave out to skip.
side_allowanceNoExtra width per room. Unit: ft (US) / m (metric). Default (US units): 0.
usable_roll_widthNoUsable roll width. Unit: ft (US) / m (metric). Default (US units): 12.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/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; the same inputs always give the same result' restates structured data rather than adding to it. What it does add beyond annotations is the defaulting behavior ('Every input is optional and falls back to the calculator page default'), the units switch, and the return shape — which matters because no output schema exists.

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?

One dense but front-loaded block: purpose first, then the calculation model, then sibling routing, then behavior and return values. The read-only/idempotent sentence duplicates annotations and could be trimmed, but nothing else is filler.

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 16-parameter, zero-required, no-output-schema calculator, the description covers what is computed, how the parameters combine, defaulting for omitted inputs, unit switching, and the returned fields (headline, summary lines, worked steps, inputs_used, calculator_url). An agent has everything needed to call it and interpret the result.

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 per-parameter baseline is 3, but the description adds the geometric model the schema cannot express: rooms are cut along room_length and covered across room_width by strips of usable_roll_width, allowances add trimming, doorways are subtracted from tack strip length, and waste adds extra linear length. That relationship-level meaning is genuinely beyond the schema's unit-and-default notes. Only the exact interplay of stair_width/tread_depth/riser_height into stair pieces stays at a summary level.

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 carpet to order from a roll') and enumerates the outputs produced (strips, linear length, square yards) for up to 3 rooms plus stairs. It explicitly names the sibling tools it is not (flooring_cartons, tile_count), so an agent can route without opening a 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?

Gives a positive inclusion rule ('Use for wall-to-wall carpet sold by the roll') plus explicit alternatives for two adjacent use cases (plank/laminate → flooring_cartons, tile → tile_count). Both the when and the when-not are stated.

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.