Skip to main content
Glama

Simple House Planner

Sofa size calculator

calculate_sofa_size
Read-only

Use this when someone asks what size of sofa or sectional fits a living room. Calculates the longest sofa or L sectional for a wall, with 36 in walkways past its ends (NKBA) and 22 in end tables beside it: its length (up to 110 in for a sofa, 156 × 120 in for an L), the number of seats (22 in each after 3 in arms), the sofa depths the room allows in front of a coffee table and a TV unit, the coffee table (two thirds of the sofa, 12 to 18 in from it), the viewing distance to the TV, the TV size that fills 30° to 40° of the view (SMPTE), and, for a given TV, the best distance and whether the seat lies within it.

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": {
      "wall": "<wall>",
      "depth": "<depth>"
    },
    "name": "calculate_sofa_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
tvNoDiagonal of the TV, in inches.
wallYesLength of the wall behind the sofa, inside the walls, in millimeters.
depthYesDistance from the wall behind the sofa to the wall with the TV, in millimeters.
shapeNoA straight sofa, or an L sectional with its short side along the left wall; sofa without it.
tablesNoEnd tables beside the sofa: 0, 1 at the left end, or 2; 1 without it.
walkwayNoWidth of a walkway; 914.4 (36 in) without it, in millimeters.
endTableNoWidth of an end table; 558.8 (22 in) without it, in millimeters.
walkwaysNoWalkways past the sofa's ends: 0, 1 at the right end, or 2; 1 without it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the read-only annotations, the description discloses concrete calculation behavior: NKBA walkway assumptions, end-table spacing, sofa length caps, seat counts, coffee-table proportions, TV viewing angles, and SMPTE guidance. It also enumerates what the tool returns, which is important because there is no output schema.

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 description is front-loaded with the usage trigger and every clause carries relevant information. However, it is a single dense sentence with a long comma-separated list, so it is informative but less scannable than it could be.

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?

Given the high complexity, eight parameters, and absence of an output schema, the description does substantial work: it explains the calculation assumptions, lists the produced measurements, and covers the TV-distance logic. An agent has enough context to understand what the tool computes and when to call it.

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 the input schema already documents all eight parameters in detail. The description reinforces defaults such as 36-inch walkways and 22-inch end tables, but mostly adds calculation context rather than new parameter-level meaning.

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 use case and verb: 'what size of sofa or sectional fits a living room' and 'Calculates the longest sofa or L sectional for a wall.' It clearly names the resource and scope, making it distinguishable from sibling calculators such as calculate_rug_size or calculate_dining_table.

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 a clear triggering condition: 'Use this when someone asks what size of sofa or sectional fits a living room.' It does not name alternatives or when-not-to-use conditions, but the intended usage context is explicit.

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