Skip to main content
Glama

Simple House Planner

Gravel and mulch calculator

calculate_gravel
Read-only

Use this when someone asks how much gravel, crushed stone, sand, topsoil or mulch they need, in cubic yards, tons or bags. Calculates the gravel, crushed stone, chippings, sand, topsoil or mulch that covers an area (a rectangle, a circle or a given area) to a depth: the area in square meters, the loose volume to order in liters, cubic feet and cubic yards (1 cu yd = 764.555 l), which is area × depth × (1 + compaction ÷ 100), the weight in kilograms and US short tons (907.18474 kg) from the loose density, and the bags of each given size that hold it, rounded up. Densities when not given, in kg per m³: gravel 1690, crushedStone 1600, sand 1690 (damp; dry loose sand is 1420) and topsoil 1250 (loam) from Caterpillar's table of loose material weights, chippings 1450 (Splitt, deutschland-rechner.de), mulch 281 (green wood chips, 473 lb per cu yd, EPA). Compaction: toom adds about 10 % for a crushed stone base, deutschland-rechner.de 6 % for base courses. byWeight tells whether merchants sell the material by weight: gravel, crushed stone, chippings and sand. bags holds the bag counts in the order of bagKilograms and then bagLiters. Common bags: 50 lb (0.5 cu ft) of gravel or sand in the US; 20 kg and 850 kg bulk bags in the UK; bulk bags of 500 and 1000 kg in Germany; mulch in 1.5 and 2 cu ft, or 50, 60 and 100 l.

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": {
      "material": "<material>",
      "depth": "<depth>"
    },
    "name": "calculate_gravel"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoArea to cover in square meters, used instead of the sizes.
depthYesDepth of the finished layer, in millimeters.
widthNoWidth of a rectangular area, in millimeters.
lengthNoLength of a rectangular area, in millimeters.
densityNoLoose density in kilograms per cubic meter (1 US short ton per cubic yard = 1186.55); when left out gravel 1690, crushedStone 1600, chippings 1450, sand 1690, topsoil 1250, mulch 281.
diameterNoDiameter of a round area, used instead of length and width, in millimeters.
materialYesThe material to spread.
bagLitersNoSizes of bags sold by volume, in liters, such as 40, 60 or 1000 (0.5 cu ft is 14.16, 2 cu ft 56.63).
compactionNoPercent of loose material added for the layer to settle or be compacted to its depth, such as 10 for a compacted crushed stone base; none when left out.
bagKilogramsNoSizes of bags sold by weight, in kilograms, such as 20, 25, 500 or 1000 (a 50 lb bag is 22.68).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it as a safe, closed read; the description goes much further, disclosing the volume formula with compaction factor, default densities with sources, rounding direction for bags, the ordering semantics of the bags output, and which materials merchants sell by weight. For a compute tool with no output schema, that is substantial behavioral context rather than restated structured data.

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

Conciseness3/5

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

The use case and key formula are front-loaded, which is good, but the body is one dense run-on paragraph. Provenance citations (Caterpillar's table, deutschland-rechner.de, EPA) and per-source compaction percentages do not help an agent select or invoke the tool and inflate the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, only 2 required, and no output schema, the description covers the material coverage, default behavior, compaction handling and the shape of returned values (area, loose volume, weight, bags) well. Minor gaps remain around how conflicting area/width-length/diameter inputs are resolved, which the schema addresses only obliquely.

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 default densities and unit examples are already structured data. The description still adds value by explaining that the returned bag counts follow the order of bagKilograms then bagLiters and by listing realistic commercial bag sizes, which shapes how an agent should populate those array parameters.

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 opening sentence names a specific verb+resource ('how much gravel, crushed stone, sand, topsoil or mulch they need') and enumerates the exact materials and output units. It is clearly distinguishable from siblings like calculate_concrete or calculate_pavers, whose materials are absent from the enum.

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 ('Use this when someone asks how much ... they need'), which is clear guidance for routing. It never states exclusions or names an alternative for overlapping cases such as concrete or paver calculators, so the when-not side is missing.

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