API & MCP

Everything a person can do on Aquarium Volume and Weight, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://hearthaquariumvolume.usefulweb.site/api/v1/calculate – run Aquarium Volume and Weight
  • GET https://hearthaquariumvolume.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Aquarium Volume and Weight

Works out how much water an aquarium really holds after the glass, the gap below the rim, the substrate (with the water in its pores) and the decor, what the filled tank weighs with an estimate for the glass, and — if you want — how far the top board of the furniture bends under it.

Inputs of Aquarium Volume and Weight
FieldTypeDefaultDescription
shapeselect (rectangular, bowfront, cylinder, hexagon)"rectangular"Tank shape
lengthCmnumber80Length (cm) — cylinder: diameter, hexagon: width across flats
depthCmnumber35Depth (cm) — bow-front: at the sides. Not used for round and hexagonal tanks.
heightCmnumber40Height (cm)
bowCmnumber0Bow-front: extra depth at the centre (cm)
glassMmnumber6Glass thickness (mm). The dimensions are outer dimensions. Enter 0 if you measured inside.
gapCmnumber2.5Gap from the water surface to the rim (cm)
substrateCmnumber5Average substrate depth (cm)
porositynumber0.4Water share of the substrate (0–0.6). Gravel and sand hold about 0.35–0.45 of their volume as water.
substrateDensitynumber1.6Substrate weight (kg per litre, dry). Gravel and sand about 1.5–1.7; lightweight plant soil about 0.8–1.1.
decorLitresnumber4Rocks, wood and decor under water (litres)
decorDensitynumber2.5Decor weight (kg per litre). Stone about 2.5; soaked wood about 1.
waterselect (fresh, marine)"fresh"Water
checkStandbooleanfalseCheck the top board of the furniture
standSpanCmnumber80Board span between its supports (cm)
standDepthCmnumber0Board depth (cm, 0 = tank depth)
standThicknessMmnumber19Board thickness (mm)
standMaterialselect (pb-p2, pb-p4, pb-p6, mdf, osb3, ply-birch, ply-birch-cross, oak-red, oak-white, maple-sugar, maple-red, beech, birch-yellow, cherry, walnut, ash-white, poplar, douglas-fir, pine-white)"pb-p2"Board material
standLimitselect (L/240, L/300, L/360, L/600)"L/600"Allowed sag

Example request

80 × 35 × 40 cm tank (112 litres outside)

curl -X POST https://hearthaquariumvolume.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"shape":"rectangular","lengthCm":80,"depthCm":35,"heightCm":40,"glassMm":6,"gapCm":2.5,"substrateCm":5,"porosity":0.4,"substrateDensity":1.6,"decorLitres":4,"decorDensity":2.5,"water":"fresh"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://hearthaquariumvolume.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: hearth_aquarium_volume
  • Local stdio connector: node src/mcp-stdio.ts --tool=hearth-aquarium-volume
{
  "mcpServers": {
    "hearth-aquarium-volume": { "type": "http", "url": "https://hearthaquariumvolume.usefulweb.site/mcp" }
  }
}