Skip to main content
Glama
Calculatessqft MCP server

Calculatessqft MCP server

by Mustafa77-7

Square footage of a shape

square_footage

Calculates square footage for rectangles, circles, triangles, L-shapes, and other areas using feet/inches or metric inputs, including counts for identical spaces.

Instructions

Square footage of one area. Shapes and fields: rectangle (length, width); square (side); l_shape (length_a, width_a, length_b, width_b); triangle (base, height); circle (diameter (or radius)); half_circle (diameter (or radius)); ring (outer_diameter, inner_diameter); trapezoid (side_a, side_b, height); parallelogram (base, height); ellipse (length, width); sector (radius, angle_degrees); rectangle_border (length, width, border_width). Lengths accept feet and inches (12' 6"), fractions (6 1/2 in) and metric (3.5 m).

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": {
      "shape": "<shape>",
      "dimensions": "<dimensions>"
    },
    "name": "square_footage"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit used for plain numbersft
countNoNumber of identical areas
shapeYes
dimensionsYesField name → length, e.g. {"length":"12' 6\"","width":"10ft"}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses accepted length formats, which is genuinely useful, but says nothing about what the result looks like (a raw number? square feet or square of the input unit?), whether the output unit follows `unit` or is always ft², how `count` multiplies the area, or what happens on an unrecognized shape field. For a computation tool with derived output and zero annotation coverage, these omissions are material.

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?

Two sentences, front-loaded with the core purpose and then a dense, scannable shape→field enumeration in a consistent parenthetical format; every clause carries information. The length-format sentence partly duplicates the `dimensions` schema description, which is the only real redundancy.

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?

Given twelve shapes, a nested free-form object, and no output schema, the description does a good job on inputs but leaves the return value entirely unspecified — an agent cannot tell whether the answer is a number in the chosen unit, square feet always, or multiplied by `count`. For a pure calculator whose whole value is the returned figure, that gap keeps it at minimum-viable-plus rather than complete.

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?

The schema leaves `dimensions` as a free-form additionalProperties object at 75% coverage; the description compensates strongly by mapping all twelve shape enum values to their exact required keys, including alternates like diameter-or-radius. It adds little beyond the schema for `unit` and `count`, and does not clarify that `count` multiplies a single shape's area or how `unit` is applied to plain numbers.

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 computation (area/square footage of one area) and enumerates every supported shape, so the resource and operation are unambiguous. It never names or contrasts a sibling such as convert_area, price_per_square_foot, or volume_cubic_yards, so an agent must infer that this is the single-area calculator rather than a conversion or cost tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied constructively: the shape→field mapping tells the caller exactly which dimensions to supply for each shape, which is the primary way to invoke the tool correctly. However, there is no explicit when-to-use/when-not guidance relative to the area-conversion, per-square-foot pricing, or material-quantity siblings, and the existence of a `count` parameter for repeated identical areas contradicts the 'one area' framing without explanation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.