Skip to main content
Glama

Simple House Planner

Paint calculator

calculate_paint
Read-only

Use this when someone asks how much paint they need for a room, walls or a ceiling. Calculates the paint for a room: the wall area 2 × (length + width) × height, or a given wall area, less the doors and windows (36 × 80 in and 36 × 60 in each unless given), plus the ceiling (length × width) when asked, times the coats, divided by the coverage. Returns the areas in square meters and the paint in liters, in all and for walls and ceiling (1 US gallon = 3.785411784 l). Coverage when not given: 350 sq ft per gallon (8.59 m² per liter), the low end of Sherwin-Williams' 350–400; the can label is more exact.

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

Input Schema

NameRequiredDescriptionDefault
coatsNoCoats of paint; 2 when left out.
doorsNoNumber of doors to leave out; none when left out.
wallsNoWall area in square meters, used instead of length, width and height.
widthNoRoom width, in millimeters.
heightNoWall height, floor to ceiling, in millimeters.
lengthNoRoom length, in millimeters.
ceilingNoTrue to paint the ceiling too; needs length and width.
windowsNoNumber of windows to leave out; none when left out.
coverageNoSquare meters one liter covers in one coat, from the can; 8.59 (350 sq ft per US gallon) when left out.
doorWidthNoWidth of one door; 914.4 (36 in) when left out, in millimeters.
doorHeightNoHeight of one door; 2032 (80 in) when left out, in millimeters.
windowWidthNoWidth of one window; 914.4 (36 in) when left out, in millimeters.
windowHeightNoHeight of one window; 1524 (60 in) when left out, in millimeters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/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 the formula, default door/window sizes, coat defaults, unit conversions, and default coverage assumptions. It also explains that the can label is more exact, giving useful accuracy context.

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?

The first sentence front-loads the use case, followed by a compact formula, return values, and default assumptions. Although dense, the length is justified by a 13-parameter calculator and the precision requirements.

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?

For a complex calculator with all-optional parameters and no output schema, the description covers the calculation method, defaults, units, and return values. An agent has enough information to call it correctly without additional documentation.

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 coverage is 100%, so parameter meanings are already well documented; the description still adds value by tying inputs together in the area and paint formulas and clarifying that walls can replace length/width/height. It does not add much syntax detail beyond the schema, but the relational context is meaningful.

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 ('how much paint they need for a room, walls or a ceiling') and states the calculation, so the agent can identify the resource and action immediately. It is clearly distinct from other calculators by its paint-specific formula and units.

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 an explicit trigger for when to use the tool and explains the wall-area alternative versus length/width/height and when the ceiling is included. It does not state when not to use it or name an alternative tool, so it stops short of full routing guidance.

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