Skip to main content
Glama

Simple House Planner

Square footage calculator

calculate_floor_area
Read-only

Use this when someone asks for the square footage, square meters or floor area of a room, a house or an apartment, including Wohnfläche and loi Carrez. Adds up the floor area of rooms or parts of a floor, each a rectangle (length × width), a triangle (base × height ÷ 2) or a circle (by its diameter), and takes away parts marked to subtract, such as a closet or an opening to the floor below. Returns, in square meters, each part's own area and the area it adds, the floor area of all parts, and the total as the method counts it (1 m² = 10.7639 sq ft; 1 sq yd = 0.83613 m²). Methods: plain (the default; every part at its full area), woflv (Germany, Wohnflächenverordnung: clear height of 2 m or more in full, 1 m to under 2 m half, under 1 m not at all; unheated winter gardens half; balconies, loggias, roof gardens and terraces a quarter, the usual share; cellars, attics and garages not at all), carrez (France, loi Carrez: closed and covered space with a clear height of 1.80 m or more; balconies, terraces, cellars and garages not at all).

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": {
      "parts": "<parts>"
    },
    "name": "calculate_floor_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsYesThe rooms or parts of the floor, at least one.
methodNoHow the area is counted; plain when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the description must add more than 'it's a safe read'. It does add real behavioral content: the unit conversions, the fact that subtract parts are deducted, and the detailed woflv/carrez counting rules (height bands, balcony quartering, cellar/garage exclusion). The return payload is also sketched. This is solid beyond-annotation context, though without an output schema the description of results stays fairly high level.

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 structure is front-loaded and logical: trigger sentence, mechanics, return values, then per-method rules. Given three legal counting regimes it is hard to be much shorter, but the density of nested parentheses (shape formulas, conversions, caveats inside caveats) makes it a single wall of text that is harder to scan than it needs to 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?

There is no output schema, yet the description spells out what comes back (each part's own area, the area it adds, the floor area of all parts, and the method-adjusted total) and in which unit. Combined with the fully documented schema and the declared-safe annotations, an agent has everything needed to choose this tool and call it correctly.

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 description coverage is 100%, so the parameters are already documented and the baseline is 3. The description goes further by explaining what the method enum actually does to the calculation (plain vs. the German height-tier/balcony rules vs. the French 1.80 m closed-covered rule) and by giving examples of subtract parts ('a closet or an opening to the floor below'), which is meaning the schema alone doesn't convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — summing the floor area of rooms/parts in either imperial or metric units — plus the domain-specific terms Wohnfläche and loi Carrez, which pin the scope tightly. It never names a sibling such as calculate_flooring, so an agent must infer that this tool is the area computation rather than the material-estimate one; that is the only thing keeping it off a 5.

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 opening clause gives an explicit trigger ('Use this when someone asks for the square footage, square meters or floor area of a room, a house or an apartment'), and the Methods section effectively routes the agent among plain/woflv/carrez by jurisdiction and building type. What is missing is any exclusion — nothing says when not to use this (e.g., for material quantities, which sibling calculators like calculate_flooring presumably handle).

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