Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Math & Numbers

Uniform Corrosion Rate Calculator (Weight Loss)

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.

json· JSON resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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}'

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/corrosion-rate-calculator

Parameters

NameTypeRequiredDescription
massLossnumberYesMass lost from the specimen in milligrams, measured by weighing before/after the test.
densitynumberYesMaterial density in g/cm³. E.g. carbon steel ≈ 7.85, stainless 304 ≈ 8.0, aluminum ≈ 2.70, copper ≈ 8.96.
areanumberYesTotal exposed specimen surface area in cm². Include all wetted faces.
timenumberYesExposure duration in hours. E.g. 24 (1 day), 720 (30 days), 8760 (1 year).
decimalPlacesnumber

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:

mcp.json
{
  "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"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "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
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
No
—

Response format

JSON result

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}

Questions or issues? Contact [email protected]