Calculate Quantity
calculate_quantityCalculate how much material a rectangular area needs. Give the length and width in feet and the depth in inches. The result gives cubic yards and tons, and orderQuantity in the unit WeGravel sells the material by, with a safety margin and the minimum order included. Pass orderQuantity and unit to get_prices to get the price and the quote link.
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>",
"lengthFt": "<lengthFt>",
"widthFt": "<widthFt>",
"depthInches": "<depthInches>"
},
"name": "calculate_quantity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widthFt | Yes | Width of the area, in feet. | |
| lengthFt | Yes | Length of the area, in feet. | |
| material | Yes | Material slug from list_materials (a material name also works). | |
| depthInches | Yes | Depth of the material, in inches. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tons | Yes | ||
| unit | Yes | ||
| areaSqFt | Yes | ||
| material | Yes | ||
| cubicYards | Yes | ||
| truckLoads | Yes | ||
| depthInches | Yes | ||
| orderQuantity | Yes | ||
| safetyMarginPercent | Yes |