Math & Numbers
Bulk density and porosity for granular or porous materials. Three-way solver: pick the unknown (ρ_bulk, m, or V) and supply the other two. ρ_bulk = m/V_bulk. Optionally enter the true particle density ρ_true to compute porosity ε = 1 − ρ_bulk/ρ_true, plus relative density against water. SI units (kg, m³, kg/m³).
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/bulk-density-calculator' \
-H 'Content-Type: application/json' \
-d '{"solveFor":"density","density":0,"mass":1.6,"volume":0.001,"trueDensity":2650,"decimalPlaces":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/bulk-density-calculator| Name | Type | Required | Description |
|---|---|---|---|
| solveFor | select | No | — |
| density | number | No | Bulk (apparent) density in kg/m³. Required when solving for mass or volume. |
| mass | number | No | Mass of the material in kg. Required when solving for density or volume. |
| volume | number | No | Bulk volume (including voids) in m³. Required when solving for density or mass. |
| trueDensity | number | No |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-bulk-density-calculator": {
"name": "bulk-density-calculator",
"description": "Bulk density and porosity for granular or porous materials. Three-way solver: pick the unknown (ρ_bulk, m, or V) and supply the other two. ρ_bulk = m/V_bulk. Optionally enter the true particle density ρ_true to compute porosity ε = 1 − ρ_bulk/ρ_true, plus relative density against water. SI units (kg, m³, kg/m³).",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bulk-density-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "bulk-density-calculator",
"arguments": {
"solveFor": "density",
"density": 0,
"mass": 1.6,
"volume": 0.001,
"trueDensity": 2650,
"decimalPlaces": 4
}
}
}| True (particle) density of the solid material itself, no pores. Optional — when given, porosity ε = 1 − ρ_bulk/ρ_true is reported. Quartz ≈ 2650, steel ≈ 7850 kg/m³. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]