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 WeightGET https://hearthaquariumvolume.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
shape | select (rectangular, bowfront, cylinder, hexagon) | "rectangular" | Tank shape |
lengthCm | number | 80 | Length (cm) — cylinder: diameter, hexagon: width across flats |
depthCm | number | 35 | Depth (cm) — bow-front: at the sides. Not used for round and hexagonal tanks. |
heightCm | number | 40 | Height (cm) |
bowCm | number | 0 | Bow-front: extra depth at the centre (cm) |
glassMm | number | 6 | Glass thickness (mm). The dimensions are outer dimensions. Enter 0 if you measured inside. |
gapCm | number | 2.5 | Gap from the water surface to the rim (cm) |
substrateCm | number | 5 | Average substrate depth (cm) |
porosity | number | 0.4 | Water share of the substrate (0–0.6). Gravel and sand hold about 0.35–0.45 of their volume as water. |
substrateDensity | number | 1.6 | Substrate weight (kg per litre, dry). Gravel and sand about 1.5–1.7; lightweight plant soil about 0.8–1.1. |
decorLitres | number | 4 | Rocks, wood and decor under water (litres) |
decorDensity | number | 2.5 | Decor weight (kg per litre). Stone about 2.5; soaked wood about 1. |
water | select (fresh, marine) | "fresh" | Water |
checkStand | boolean | false | Check the top board of the furniture |
standSpanCm | number | 80 | Board span between its supports (cm) |
standDepthCm | number | 0 | Board depth (cm, 0 = tank depth) |
standThicknessMm | number | 19 | Board thickness (mm) |
standMaterial | select (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 |
standLimit | select (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" }
}
}