Skip to main content
Glama

TwoCut Construction & DIY Calculators

Tile Count and Box Calculator

tile_count
Read-onlyIdempotent

Calculate tiles and boxes for a floor or wall. Field is length × width, or direct_area for odd shapes; actual tile size plus joint width set tiles per area; layout 0 (straight) adds waste and layout 1 (diagonal) adds diagonal_waste. Boxes come from per_box tiles, or from box_area coverage when per_box is 0. Optional grout_cov and thinset_cov (label coverage per bag) add bag counts. Use to count ceramic, porcelain or stone tiles. For grout pails over several areas use grout; for mortar bags by trowel notch use thinset_mortar; for plank flooring use flooring_cartons. 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": "tile_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
jointNoJoint width. Unit: in (US) / cm (metric). Default (US units): 0.125.
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
wasteNoStraight layout allowance. Unit: % (US) / % (metric). Default (US units): 10.
widthNoField width (ignored when area is entered). Unit: ft (US) / m (metric). Default (US units): 10.
layoutNoLayout. Default (US units): 0.
lengthNoField length (ignored when area is entered). Unit: ft (US) / m (metric). Default (US units): 10.
per_boxNoTiles per box (0 uses coverage). Default (US units): 10.
box_areaNoTile-face coverage per box (used when count is 0). Unit: ft² (US) / m² (metric). Default (US units): 0.
box_priceNoPrice per box. Unit: $ (US) / $ (metric). Optional, leave out to skip.
grout_covNoGrout coverage per bag (from the label, for your tile and joint). Unit: ft² (US) / m² (metric). Optional, leave out to skip.
tile_widthNoActual tile width. Unit: in (US) / cm (metric). Default (US units): 12.
direct_areaNoOdd-shaped room: total area (leave 0 to use length × width). Unit: ft² (US) / m² (metric). Default (US units): 0.
grout_priceNoPrice per bag of grout. Unit: $ (US) / $ (metric). Optional, leave out to skip.
thinset_covNoThinset coverage per bag (from the label, for your trowel). Unit: ft² (US) / m² (metric). Optional, leave out to skip.
tile_lengthNoActual tile length. Unit: in (US) / cm (metric). Default (US units): 12.
thinset_priceNoPrice per bag of thinset. Unit: $ (US) / $ (metric). Optional, leave out to skip.
diagonal_wasteNoDiagonal layout allowance. Unit: % (US) / % (metric). Default (US units): 15.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/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 the safety profile is covered; the description's 'read-only calculation with no side effects' partly restates that. It does add genuinely new behavior: every input is optional and falls back to the calculator page default, and it enumerates the return payload (headline, summary lines, numbered worked steps, inputs_used, calculator_url) — valuable since 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?

Front-loaded with purpose, then calculation rules, then sibling routing, then inputs/outputs — a sensible order with no filler sentences. It is a dense run-on paragraph, though, and the 'Use to count ceramic, porcelain or stone tiles' sentence carries little weight beyond the opening line.

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 17-parameter, all-optional calculator with no output schema, the definition covers defaults, unit system behavior, the two area-entry modes, the box-count fallback, and the optional cost/coverage add-ons. The one lingering gap is that the agent must trust the default fallback rather than knowing which defaults matter most, but overall it is complete enough to call correctly.

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?

With 100% schema coverage the baseline is 3, but the description adds meaning the schema lacks: layout is encoded as 0 (straight, uses waste) versus 1 (diagonal, uses diagonal_waste), per_box=0 switches the calculation to box_area coverage, and grout_cov/thinset_cov are label coverage per bag from the user's product label. These are interpretive rules, not schema restatements.

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 tiles and boxes for a floor or wall') plus the material scope (ceramic, porcelain, stone) and the two output quantities (tiles, boxes). It also draws boundaries against three named siblings, so an agent can separate it from grout, thinset_mortar and flooring_cartons without opening any 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 is given for the ambiguous cases: 'For grout pails over several areas use grout; for mortar bags by trowel notch use thinset_mortar; for plank flooring use flooring_cartons.' It also explains the internal input modes (length × width vs direct_area for odd shapes), which tells the agent when each input path applies.

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.