Skip to main content
Glama

area_calculate

Read-onlyIdempotent

Calculate the area and, when possible, perimeter of common shapes including circles, rectangles, triangles, trapezoids, ellipses, parallelograms, and sectors.

Instructions

Calculate area (and perimeter where possible) of common shapes: circle, rectangle, triangle, trapezoid, ellipse, parallelogram, sector.

Input Schema

NameRequiredDescriptionDefault
baseNoBase (triangle, parallelogram).
base1NoFirst base (trapezoid).
base2NoSecond base (trapezoid).
shapeYesShape: circle, rectangle, triangle, trapezoid, ellipse, parallelogram, or sector.
widthNoWidth (rectangle).
heightNoHeight (rectangle, triangle, trapezoid, parallelogram).
radiusNoRadius (circle, sector).
semi_majorNoSemi-major axis (ellipse).
semi_minorNoSemi-minor axis (ellipse).
angle_degreesNoAngle in degrees (sector).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.11

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered. The description adds one genuinely useful behavioral fact — perimeter is returned only 'where possible', i.e. output varies by shape — but says nothing about precision, units, or whether formulas/steps come back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with zero filler, verb and scope front-loaded, and the shape list packed into a compact enumeration. Nothing to trim.

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, the description must carry return-value burden; it says area plus optional perimeter but leaves the response shape, numeric precision, and unit assumptions unspecified. Adequate for a deterministic math tool, but not complete.

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% and each property already names the shape(s) it applies to (e.g. base1/base2 for trapezoid, angle_degrees for sector), so the schema carries the semantics. The description only adds that shape determines which parameters matter; baseline 3 applies.

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?

States a specific verb ('Calculate') and resource ('area ... of common shapes'), then enumerates the seven supported shapes, which lets an agent match a request to this tool rather than to convert_area or polygon_calculate. It never explicitly contrasts with those siblings, so it stops short of 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 Guidelines3/5

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

The enumerated shape list implies when to use it (a named shape with known dimensions), but there is no explicit when-not guidance and no pointer to alternatives such as triangle_solve (for missing sides/angles) or polygon_calculate (for irregular polygons). Usage must be inferred.

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

Deploy Server

Other Tools