Skip to main content
Glama

Snuug room calculators

Sofa fit calculator

sofa_fit
Read-onlyIdempotent

Use when someone asks whether a sofa will fit: through a door, round a hall, up the stairs, and, when room is yes, in the room itself. Applies the furniture shops’ straight, tipped-back, on-end and swing tests, the same opening tests on the stairs, and, only when asked, a wall and walkway check. Grades each ok, tight or no; a walkway under the least main walkway is tight, never no. The two-thirds wall figure is a proportion cue in the notes, not a pass or a fail.

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": "sofa_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomNoyes to check the room as well (the wall and the walkway in front), no to check only the way in. With no, the room sizes are not used.no
routeNoturn if the sofa must turn into the room after the door, straight if it goes straight on.turn
stairsNoyes if the sofa has to go up or down stairs, no if it does not.no
wall_cmNoThe length of the wall the sofa stands against (used when room is yes) (cm).
door_width_cmNoThe door’s clear width: the gap with the door open, frame to door edge (cm).
front_used_cmNoDepth already taken in front of the sofa, such as a coffee table and the gap to it. 0 if nothing sits there yet (cm).
hall_width_cmNoThe width of the hall or landing beyond the door, where the sofa must turn (cm).
room_depth_cmNoThe room’s depth from that wall to the facing wall (used when room is yes) (cm).
sofa_depth_cmNoThe sofa’s depth, back to front (cm).
sofa_width_cmNoThe sofa’s width, arm to arm (its length when carried) (cm).
door_height_cmNoThe door’s clear height (cm).
sofa_height_cmNoThe sofa’s height, floor to the top of the back (cm).
stair_width_cmNoThe narrowest clear width of the stairs (used when stairs is yes) (cm).
sofa_diagonal_cmNoThe sofa’s diagonal depth: from the back bottom corner to a straight edge laid from the top of the back to the front of the arm (cm).
stair_headroom_cmNoThe lowest headroom over the stairs (used when stairs is yes). New stairs in England need at least 200 cm (cm).

Output Schema

NameRequiredDescriptionDefault
toolYesThe tool, as named in its API and page URLs.
notesYesCaveats to pass on with the answer.
snuugYesOne line about Snuug, the app behind the calculators.
answerYesThe answer as named values.
inputsYesEvery input as the tool used it: given, a default, or filled in from the rules.
sourcesYesThe sources of the rules used. Every rule cites its source, with the date it was checked.
summaryYesThe answer in one sentence to quote.
versionYesThe version of this contract.
workingYesHow the answer was worked out, one step a line.
page_urlYesThe calculator on snuug.app with these inputs filled in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • addedInput schema / properties / front_used_cm
      Added value: +{
      +  "default": 0,
      +  "description": "Depth already taken in front of the sofa, such as a coffee table and the gap to it. 0 if nothing sits there yet (cm).",
      +  "maximum": 2000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / room
      Added value: +{
      +  "default": "no",
      +  "description": "yes to check the room as well (the wall and the walkway in front), no to check only the way in. With no, the room sizes are not used.",
      +  "enum": [
      +    "no",
      +    "yes"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / room_depth_cm
      Added value: +{
      +  "default": 330,
      +  "description": "The room’s depth from that wall to the facing wall (used when room is yes) (cm).",
      +  "maximum": 2000,
      +  "minimum": 40,
      +  "type": "number"
      +}
    • addedInput schema / properties / stair_headroom_cm
      Added value: +{
      +  "default": 200,
      +  "description": "The lowest headroom over the stairs (used when stairs is yes). New stairs in England need at least 200 cm (cm).",
      +  "maximum": 400,
      +  "minimum": 100,
      +  "type": "number"
      +}
    • addedInput schema / properties / stair_width_cm
      Added value: +{
      +  "default": 100,
      +  "description": "The narrowest clear width of the stairs (used when stairs is yes) (cm).",
      +  "maximum": 300,
      +  "minimum": 40,
      +  "type": "number"
      +}
    • addedInput schema / properties / stairs
      Added value: +{
      +  "default": "no",
      +  "description": "yes if the sofa has to go up or down stairs, no if it does not.",
      +  "enum": [
      +    "no",
      +    "yes"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / wall_cm
      Added value: +{
      +  "default": 360,
      +  "description": "The length of the wall the sofa stands against (used when room is yes) (cm).",
      +  "maximum": 2000,
      +  "minimum": 50,
      +  "type": "number"
      +}
    • changedOutput schema / properties / answer / properties / checks / description
      Previous value: -"Each test: straight, tipped, on_end and swing, each with clear_cm and grade"New value: +"Each test: straight, tipped, on_end and swing, and wall and walkway when room is yes, each with clear_cm and grade"
    • addedOutput schema / properties / answer / properties / room
      Added value: +{
      +  "description": "The room, null when room is no: verdict, wall_clear_cm, wall_grade, wall_share (sofa width ÷ wall), walkway_clear_cm (left in front, minus the least walkway), walkway_grade, walkway_least_cm",
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / answer / properties / stairs
      Added value: +{
      +  "description": "The stairs: how (straight, tipped or none), clear_cm (null when there are no stairs), grade",
      +  "type": "object"
      +}
    • changedOutput schema / properties / answer / properties / verdict / description
      Previous value: -"ok, tight or no"New value: +"ok, tight or no, for the way in, the stairs and the room together"
    • changedOutput schema / properties / answer / required
      Previous value: -[
      -  "verdict",
      -  "door",
      -  "turn",
      -  "checks",
      -  "end_across_cm",
      -  "end_across",
      -  "margin_cm",
      -  "size_varies_pct"
      -]New value: +[
      +  "verdict",
      +  "door",
      +  "turn",
      +  "checks",
      +  "end_across_cm",
      +  "end_across",
      +  "margin_cm",
      +  "size_varies_pct",
      +  "room",
      +  "stairs"
      +]
    • addedOutput schema / properties / inputs / properties / front_used_cm
      Added value: +{
      +  "description": "Depth already taken in front of the sofa, such as a coffee table and the gap to it. 0 if nothing sits there yet (cm).",
      +  "maximum": 2000,
      +  "minimum": 0,
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / inputs / properties / room
      Added value: +{
      +  "description": "yes to check the room as well (the wall and the walkway in front), no to check only the way in. With no, the room sizes are not used.",
      +  "enum": [
      +    "no",
      +    "yes"
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / inputs / properties / room_depth_cm
      Added value: +{
      +  "description": "The room’s depth from that wall to the facing wall (used when room is yes) (cm).",
      +  "maximum": 2000,
      +  "minimum": 40,
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / inputs / properties / stair_headroom_cm
      Added value: +{
      +  "description": "The lowest headroom over the stairs (used when stairs is yes). New stairs in England need at least 200 cm (cm).",
      +  "maximum": 400,
      +  "minimum": 100,
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / inputs / properties / stair_width_cm
      Added value: +{
      +  "description": "The narrowest clear width of the stairs (used when stairs is yes) (cm).",
      +  "maximum": 300,
      +  "minimum": 40,
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / inputs / properties / stairs
      Added value: +{
      +  "description": "yes if the sofa has to go up or down stairs, no if it does not.",
      +  "enum": [
      +    "no",
      +    "yes"
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / inputs / properties / wall_cm
      Added value: +{
      +  "description": "The length of the wall the sofa stands against (used when room is yes) (cm).",
      +  "maximum": 2000,
      +  "minimum": 50,
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / inputs / required
      Previous value: -[
      -  "door_width_cm",
      -  "door_height_cm",
      -  "hall_width_cm",
      -  "route",
      -  "sofa_width_cm",
      -  "sofa_depth_cm",
      -  "sofa_height_cm",
      -  "sofa_diagonal_cm"
      -]New value: +[
      +  "door_width_cm",
      +  "door_height_cm",
      +  "hall_width_cm",
      +  "route",
      +  "stairs",
      +  "stair_width_cm",
      +  "stair_headroom_cm",
      +  "sofa_width_cm",
      +  "sofa_depth_cm",
      +  "sofa_height_cm",
      +  "sofa_diagonal_cm",
      +  "room",
      +  "wall_cm",
      +  "room_depth_cm",
      +  "front_used_cm"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, closed-world, non-destructive behaviour, so the description is free to spend its words elsewhere and does: it names the four fit tests applied (straight, tipped-back, on-end, swing), extends them to stairs, and discloses the output grading vocabulary (ok / tight / no) plus the important rule that an undersized walkway grades tight, never no. That walkway rule and the note that the two-thirds wall figure is only a cue, not a pass/fail, are exactly the kind of nuance an agent could otherwise misreport.

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 triggering condition is front-loaded and three sentences cover use case, method, and grading with little waste. Some phrasing is compressed to the point of being cryptic ("the same opening tests on the stairs," "the least main walkway"), which costs a little readability without adding length.

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 15-parameter, zero-required calculator with a full schema plus an output schema and safety annotations, the description supplies the missing conceptual layer: which physical tests underlie the result and how grades are assigned. What remains unstated — what an all-defaults call means, or how conflicting grades across stages are combined — is minor given the output schema and per-parameter docs.

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 description coverage is 100%, so every one of the 15 parameters including units, ranges and defaults is already documented in structured form; the description does not need to restate them. It adds only a light conditional tie-in (room sizes used only when room is yes), which is already stated in the schema, so the baseline of 3 is appropriate.

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 gives a concrete decision task (will a sofa fit) and enumerates the exact passage cases covered: through a door, round a hall, up the stairs, and into the room. Sibling tools in the context are unrelated sizing calculators (rug_size, curtain_size, dining_table_size), so no disambiguation was needed, but the scope statement is unambiguous enough that an agent could not confuse this with anything else.

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 states the triggering question ("whether a sofa will fit") and gives negative/conditional guidance: the room wall-and-walkway check runs "only when asked," which maps onto the room parameter. It does not name alternatives, but with an unrelated sibling set there is no meaningful alternative to route to, so the guidance is complete in practical terms.

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