Math & Numbers
Uniform corrosion rate by weight loss per ASTM G1: CR (mm/a) = 87.6 × ΔW / (ρ × A × t), with ΔW in mg, ρ in g/cm³, A in cm², t in hours. Also reports mpy (mils/year = mm/a × 39.37) and an indicative NACE-style carbon-steel rating (excellent/good/fair/poor). Used for immersion tests and coupon exposure.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/corrosion-rate-calculator' \
-H 'Content-Type: application/json' \
-d '{"massLoss":50,"density":7.85,"area":20,"time":720,"decimalPlaces":3}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/corrosion-rate-calculator| Name | Type | Required | Description |
|---|---|---|---|
| massLoss | number | Yes | Mass lost from the specimen in milligrams, measured by weighing before/after the test. |
| density | number | Yes | Material density in g/cm³. E.g. carbon steel ≈ 7.85, stainless 304 ≈ 8.0, aluminum ≈ 2.70, copper ≈ 8.96. |
| area | number | Yes | Total exposed specimen surface area in cm². Include all wetted faces. |
| time | number | Yes | Exposure duration in hours. E.g. 24 (1 day), 720 (30 days), 8760 (1 year). |
| decimalPlaces | number |
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-corrosion-rate-calculator": {
"name": "corrosion-rate-calculator",
"description": "Uniform corrosion rate by weight loss per ASTM G1: CR (mm/a) = 87.6 × ΔW / (ρ × A × t), with ΔW in mg, ρ in g/cm³, A in cm², t in hours. Also reports mpy (mils/year = mm/a × 39.37) and an indicative NACE-style carbon-steel rating (excellent/good/fair/poor). Used for immersion tests and coupon exposure.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=corrosion-rate-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": "corrosion-rate-calculator",
"arguments": {
"massLoss": 50,
"density": 7.85,
"area": 20,
"time": 720,
"decimalPlaces": 3
}
}
}| No |
| — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]