Skip to main content
Glama

Simple House Planner

Rug size calculator

calculate_rug_size
Read-only

Use this when someone asks what size of rug to buy for a living room, bedroom or dining room. Calculates the rug for a living room (sofa or L-shaped sectional with seats across, all legs on, front legs on or floating), a bed (US or European size, under the lower two thirds or the whole bed) or a dining table (rectangle, square or round), and rounds it to the nearest standard sizes sold in the US (feet: 3 × 5 to 12 × 15, rounds and squares 3 to 10 ft) and in Europe (cm: 60 × 90 to 300 × 400, rounds and squares 80 to 300). Returns the rug area with its position relative to the furniture, the US and European sizes oriented to it (undefined when no standard size fits), and with a room size the largest rugs that keep bare floor to the walls. Margins: sofa 12 in or 30 cm, bed 24 in or 50 cm, dining table 24 in or 60 cm, walls 18 in or 25 cm.

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": {
      "room": "<room>"
    },
    "name": "calculate_rug_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
armNoLiving room: short side of an L-shaped sectional, from the back of the long side; leave out for a sofa, in millimeters.
bedNoBedroom: US: bed_twin (38 × 75 in), bed_single_xl (twin XL), bed_full, bed_queen, bed_king, bed_king_xl (California king). European: bed_single (90 × 200 cm), bed_three_quarter_xl (100 × 200), bed_three_quarter (120 × 200), bed_double (140 × 200), bed_queen_xl (160 × 200), bed_super_king (180 × 200), bed_double_xl (200 × 200).
roomYesThe furniture the rug goes with: a sofa or sectional with seats across, a bed, or a dining table.
sofaNoLiving room: length of the sofa, or of the long side of an L-shaped sectional, in millimeters.
wallNoBare floor between the rug and the walls, in millimeters. Default 457 (18 in) for imperial, 250 for metric.
coverNoBedroom: the rug under the lower two thirds of the bed, or under the whole bed. Default lower.
depthNoLiving room: depth of the sofa, in millimeters.
floorNoThe room, to check the rug and find the largest standard rug that keeps wall free.
spaceNoLiving room: space from the front of the sofa to the front of the chairs or sofa across from it, in millimeters.
tableNoDining room: table shape; an oval table counts as a rectangle.
unitsNoSelects the default margins: US values in inches or European values in centimeters. Default imperial.
widthNoDining room: width of a rectangular table, in millimeters.
lengthNoDining room: length of the table, its side, or its diameter, in millimeters.
marginNoHow far the rug reaches past the furniture, in millimeters. Default for imperial and metric: sofa 305 or 300, bed 610 or 500, dining table 610 or 600.
placementNoLiving room: all legs on the rug, front legs on, or a rug floating between the seats.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description's added value is the calculation behavior: margins per furniture type, standard-size rounding in imperial and metric, the 'undefined' result when no standard size fits, and the wall-clearance search when room dimensions are supplied. That is substantial transparency beyond the annotations, though it does not explain how conflicts between margin/units defaults resolve.

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?

Usage trigger is front-loaded, followed by per-room capability and then results, which is a logical progression. The three-sentence body is dense but the final margin sentence duplicates defaults already in the margin and wall parameter descriptions, so it is slightly redundant rather than wasted.

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 15-parameter, single-required-parameter calculator with no output schema, the description covers inputs, defaults, rounding behavior, and the shape of the return values (area, orientation-relative US/EU sizes, wall-clearance maximums). 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.

Parameters5/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 goes further by tying parameters to room modes and restating the default margins (sofa 12 in/30 cm, bed 24 in/50 cm, dining 24 in/60 cm, walls 18 in/25 cm) that govern the margin and wall parameters. It also clarifies rounding targets, which the schema does not.

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 usage trigger and then a precise verb+resource: it calculates rug size for living rooms, bedrooms and dining rooms, enumerating the configurations (sofa/sectional, bed, table) and the output convention (nearest standard US/EU sizes). It is clearly distinguishable from siblings like calculate_sofa_size or calculate_dining_table, which size furniture rather than rugs.

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?

It gives an explicit when-to-use trigger ('when someone asks what size of rug to buy') and maps each room value to the required furniture inputs. It does not, however, state when not to use it or name an alternative tool for related questions, so it stops short of full routing guidance.

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