Math & Numbers
Compute complex impedance, magnitude |Z| and phase angle φ for series or parallel RLC circuits: X_L=2πfL, X_C=1/(2πfC), |Z|=√(R²+X²), φ=atan2(X,R). Supports any subset of R/L/C and an optional linear frequency sweep.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/impedance-calculator' \
-H 'Content-Type: application/json' \
-d '{"topology":"series","R":100,"L":0.1,"C":0.00001,"frequency":50,"sweepEnable":false,"sweepStart":0,"sweepEnd":0,"sweepPoints":10,"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/impedance-calculator| Name | Type | Required | Description |
|---|---|---|---|
| topology | select | No | — |
| R | number | No | Optional. At least one of R/L/C must be provided. |
| L | number | No | Optional. At least one of R/L/C must be provided. |
| C | number | No | Optional. At least one of R/L/C must be provided. |
| frequency | number | Yes | Operating frequency (Hz). Also used as the single-point value when sweep is disabled. |
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-impedance-calculator": {
"name": "impedance-calculator",
"description": "Compute complex impedance, magnitude |Z| and phase angle φ for series or parallel RLC circuits: X_L=2πfL, X_C=1/(2πfC), |Z|=√(R²+X²), φ=atan2(X,R). Supports any subset of R/L/C and an optional linear frequency sweep.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=impedance-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": "impedance-calculator",
"arguments": {
"topology": "series",
"R": 100,
"L": 0.1,
"C": 0.00001,
"frequency": 50,
"sweepEnable": false,
"sweepStart": 0,
"sweepEnd": 0,
"sweepPoints": 10,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
| sweepEnable | checkbox | No | If checked, sample N points from Sweep Start to Sweep End and return a curve array. |
| sweepStart | number | No | Required when sweep is enabled. |
| sweepEnd | number | No | Required when sweep is enabled. |
| sweepPoints | number | No | Number of points in the sweep (2–50). Required when sweep is enabled. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}