omni_density_mass_volume
Calculates material density from mass and volume, returning specific gravity, imperial density, and buoyancy behavior to prevent arithmetic errors in physics calculations.
Instructions
Density, Mass & Volume Calculator. Calculate material density (ρ), total mass, and displacement volume with bidirectional inversions and material reference library. Discipline: PHYSICS. Governing mathematical model / formula: Density ρ = Mass / Volume | Mass = ρ · Volume | Volume = Mass / ρ.
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of density_kgm3 (Calculated Density (ρ)), specific_gravity (Specific Gravity (Relative to Water)), density_imperial (Imperial Density), buoyancy_fate (Buoyancy Behavior in Fresh Water) using mass_val (Mass (m) in kg), volume_val (Volume (V) in m³). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
DISAMBIGUATION & BOUNDARIES:
Use this dedicated specialist tool for 'Density, Mass & Volume Calculator' rather than generic dispatchers like omni_universal_query.
For multi-calculation chained jobs, use 'omni_batch_calculate'.
To inspect schema fields, see 'omni_describe_solver'.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "density-mass-volume"
category (string): "physics"
name (string): "Density, Mass & Volume Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.density_kgm3 (Calculated Density (ρ)): Formatted display string (e.g. '19,300 kg/m³ (19.3 g/cm³)')
metrics.specific_gravity (Specific Gravity (Relative to Water)): Formatted display string (e.g. '19.30 (Pure Gold)')
metrics.density_imperial (Imperial Density): Formatted display string (e.g. '1,204.8 lbs / cu ft')
metrics.buoyancy_fate (Buoyancy Behavior in Fresh Water): Formatted display string (e.g. 'Sinks (Negative Buoyancy)')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_density_mass_volume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mass_val | No | Mass (m) (kg). Mass of the material. Default: 19.3. Min: 0.001. Max: 1000000. | |
| volume_val | No | Volume (V) (m³). 1 m³ = 1,000 Liters = 1,000,000 cm³. Default: 0.001. Min: 0.00001. Max: 10000. |