Skip to main content
Glama

Simple House Planner

Flooring and tile calculator

calculate_flooring
Read-only

Use this when someone asks how much flooring, laminate, hardwood, vinyl or tile they need for a room, or how many boxes to buy. Calculates the planks, tiles or carpet for a floor, or tiles for a wall: the area from length × width or a given area, the area with waste for the laying pattern, the number of pieces (each tile counted with one grout joint added to its length and width), the boxes (from pieces per box, or the area per box) and the area in square yards. Waste when not given: straight 10 %, diagonal 15 %, herringbone 20 % (from Mullican Flooring's 5–7 % straight and 10–15 % diagonal and Havwoods' 15–20 % herringbone), carpet 10 %. Areas are in square meters (1 sq ft = 0.09290304 m²).

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": {
      "material": "<material>"
    },
    "name": "calculate_flooring"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoFloor or wall area in square meters, used instead of length and width.
jointNoGrout joint between tiles, in millimeters; 3.175 (1/8 in) when left out.
wasteNoPercent added for cuts and breakage; when left out 10 for straight, 15 for diagonal, 20 for herringbone and 10 for carpet.
widthNoRoom width, in millimeters.
lengthNoRoom length, in millimeters.
perBoxNoPlanks or tiles per box.
boxAreaNoSquare meters per box from the label, used without perBox or the piece size.
patternNoLaying pattern of planks or tiles; straight when left out.
materialYesPlanks (laminate, wood or vinyl), tiles, or carpet from a roll.
pieceWidthNoWidth of one plank or tile, in millimeters.
pieceLengthNoLength of one plank or tile, in millimeters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish this as a read-only, non-destructive, closed-world calculation, so the safety profile needs no restating. The description goes beyond them by disclosing default behavior in detail: fallback waste percentages per pattern with their sourcing, the default grout joint treatment, and the square-meter unit convention. It does not discuss precision, rounding or error behavior when inputs are inconsistent (e.g. both area and length/width supplied).

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 use condition is front-loaded and the rest is dense, information-bearing prose with no filler sentences. It is a single long paragraph, though, and the waste-default sentence duplicates schema text, which is the main thing that could be trimmed.

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 an 11-parameter calculator with no output schema, the description does an unusually good job of naming the returned quantities (area, waste-adjusted area, piece count, box count, square yards) and the units. What is left implicit is which inputs take precedence when several equivalents are supplied, and how the results are formatted for the caller.

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 coverage is 100%, so the baseline is 3, and the description does add real meaning: it explains that each tile is counted with one grout joint added to both length and width, that boxes can be derived from pieces per box or area per box, and that areas are in square meters with a conversion factor. However, much of this restates what is already in the schema descriptions (the 10/15/20/10 waste defaults appear in both), so the marginal gain is modest relative to a fully documented schema.

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 concrete trigger and a specific verb-plus-resource: compute how much flooring, laminate, hardwood, vinyl or tile is needed, or how many boxes to buy. It further scopes the tool to planks, tiles or carpet and to both floor and wall surfaces, which clearly separates it from a plain area calculator or unrelated sibling tools.

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?

The 'use this when someone asks how much flooring... or how many boxes to buy' clause gives an explicit, recognizable usage condition an agent can pattern-match on. What is missing is any exclusion or routing advice toward close siblings such as calculate_floor_area, so the agent must infer the boundary itself.

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