Math & Numbers
Bulk Density & Porosity Calculator
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³).
Quick start
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}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/bulk-density-calculatorParameters
| 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 |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
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"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
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
}
}
}