Skip to main content
Glama

Simple House Planner

Bed size calculator

calculate_bed_fit
Read-only

Use this when someone asks which bed size fits a bedroom, or whether a king, queen or double bed fits. Checks which US and European beds fit a bedroom with walkways beside and at the foot of the bed, keeping clear of a door's swing and a wardrobe and the walkway in front of it. Returns for each bed whether it fits, the widest walkway it leaves and the smallest room for it; the largest US and European bed that fits; where the chosen bed stands; the floor area; and whether the room meets the smallest bedroom of the IRC (R304: 70 sq ft, 7 ft each way) and of England's nationally described space standard. Beds for two keep a walkway on both sides; beds for one stand against a side wall. Walkways: 24 in at least (Sleep Foundation), 36 in comfortable (Dimensions.com). Beds: bed_twin, bed_single_xl (twin XL), bed_full, bed_queen, bed_king, bed_king_xl (California king), 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).

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": {
      "width": "<width>",
      "length": "<length>"
    },
    "name": "calculate_bed_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
bedNoThe bed to place; bed_queen without it.
doorNoA door that swings into the room.
widthYesLength of the wall behind the bed, inside the walls, in millimeters.
lengthYesDistance from the wall behind the bed to the opposite wall, in millimeters.
walkwayNoWalkway beside and at the foot of the bed and in front of a wardrobe: 609.6 (24 in) without it, 914.4 (36 in) for comfort, or 600 and 900 in a metric room, in millimeters.
wardrobeNoA wardrobe against a wall.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safe read-only profile, so the bar is lower, but the description still adds real behavioral content: the placement rules (two-sided walkways for double beds, side-wall placement for singles), the door-swing and wardrobe clearances, and the regulatory thresholds it evaluates against. It does not state what happens on invalid geometry (e.g. a door opening into the bed footprint) or how the returned placement data is formatted.

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 trigger, then the computation model, then the return set, then reference constants — a sensible order. It is long and slightly dense in the regulatory sentence, and the walkway constants partly duplicate the schema's walkway description, but almost every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and a nested door/wardrobe input, the description does the heavy lifting by enumerating the return fields (fits, widest walkway, smallest room, largest fitting bed, chosen placement, floor area, code compliance). It omits edge-case behavior such as infeasible or overlapping door/wardrobe placements, which matters for a geometry solver with conditional optional inputs.

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 all six parameters are already documented. The description nonetheless adds meaning beyond the schema by giving the actual dimensions of every bed enum value and by pinning the walkway constants to named standards (Sleep Foundation 24 in, Dimensions.com 36 in), which the schema only mentions in passing.

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?

Opens with a concrete trigger ("which bed size fits a bedroom") and a concrete verb of computation, naming the exact decision the tool answers (does a king/queen/double fit). The resource is narrow enough that no sibling calculator — rug, sofa, window — could be confused for it.

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?

Gives an explicit when-to-use trigger in the first sentence, including the natural-language phrasing a user would employ. It does not name an alternative tool or state when this is the wrong choice, 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