Math & Numbers
Calculate the infinite-slope factor of safety: FS = c'/(γ·z·cosβ·sinβ) + tanφ'/tanβ. Supports dry slopes and seepage parallel to the slope. Returns FS and a stable/marginal/unstable classification.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/slope-stability-calculator' \
-H 'Content-Type: application/json' \
-d '{"mode":"dry","c":10,"phi":25,"beta":30,"z":3,"gamma":18,"gammaSat":0,"gammaW":9.81,"decimalPlaces":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/slope-stability-calculator| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | No | — |
| c | number | Yes | Effective cohesion c'. Use 0 for clean cohesionless soil. |
| phi | number | Yes | 0 ≤ φ' < 90. |
| beta | number | Yes | 0 < β < 90. Slope angle from horizontal. |
| z | number | Yes | Vertical depth of the slip surface below the slope face. |
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-slope-stability-calculator": {
"name": "slope-stability-calculator",
"description": "Calculate the infinite-slope factor of safety: FS = c'/(γ·z·cosβ·sinβ) + tanφ'/tanβ. Supports dry slopes and seepage parallel to the slope. Returns FS and a stable/marginal/unstable classification.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=slope-stability-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": "slope-stability-calculator",
"arguments": {
"mode": "dry",
"c": 10,
"phi": 25,
"beta": 30,
"z": 3,
"gamma": 18,
"gammaSat": 0,
"gammaW": 9.81,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
| gamma | number | Yes | Dry mode: total unit weight. Parallel mode: this is overridden by γ_sat. |
| gammaSat | number | No | Required for seepage-parallel mode. |
| gammaW | number | No | Used in seepage-parallel mode. Default 9.81 kN/m³. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}