Math & Numbers
Convert sound pressure between linear units (Pa, µPa, µbar, mbar) and the decibel sound pressure level dB SPL (Lp = 20·log₁₀(p / 20 µPa), reference p₀ = 20 µPa = 2e-5 Pa RMS, per ISO 1683). Supports bidirectional linear↔logarithmic conversion. Calibration anchor: 1 Pa → 20·log₁₀(1/2e-5) ≈ 94 dB SPL. Reference values: threshold of hearing 20 µPa (0 dB), speech ≈ 0.02 Pa (60 dB), rock concert ≈ 20 Pa (120 dB), pain threshold ≈ 200 Pa (140 dB).
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/sound-pressure-level-converter' \
-H 'Content-Type: application/json' \
-d '{"inputUnit":"Pa","value":1,"outputUnit":"dB SPL","decimalPlaces":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/sound-pressure-level-converter| Name | Type | Required | Description |
|---|---|---|---|
| inputUnit | select | No | — |
| value | number | Yes | Sound pressure in the selected Input unit. Must be non-negative (linear) or finite (dB). |
| outputUnit | select | No | — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-sound-pressure-level-converter": {
"name": "sound-pressure-level-converter",
"description": "Convert sound pressure between linear units (Pa, µPa, µbar, mbar) and the decibel sound pressure level dB SPL (Lp = 20·log₁₀(p / 20 µPa), reference p₀ = 20 µPa = 2e-5 Pa RMS, per ISO 1683). Supports bidirectional linear↔logarithmic conversion. Calibration anchor: 1 Pa → 20·log₁₀(1/2e-5) ≈ 94 dB SPL. Reference values: threshold of hearing 20 µPa (0 dB), speech ≈ 0.02 Pa (60 dB), rock concert ≈ 20 Pa (120 dB), pain threshold ≈ 200 Pa (140 dB).",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sound-pressure-level-converter",
"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": "sound-pressure-level-converter",
"arguments": {
"inputUnit": "Pa",
"value": 1,
"outputUnit": "dB SPL",
"decimalPlaces": 2
}
}
}Questions or issues? Contact [email protected]