Math & Numbers
Size the shunt capacitor needed to raise the power factor: C = P·(tanφ₁ − tanφ₂)/(2π·f·U²). Returns compensated reactive power Qc, capacitive reactance Xc, capacitor current Ic, and the required capacitance in F/μF.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/power-factor-correction' \
-H 'Content-Type: application/json' \
-d '{"P":5000,"cosphi1":0.7,"cosphi2":0.95,"f":50,"U":400,"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/power-factor-correction| Name | Type | Required | Description |
|---|---|---|---|
| P | number | Yes | Real (active) power drawn by the load. |
| cosphi1 | number | Yes | Initial power factor (lagging). 0 < cosφ₁ < 1. |
| cosphi2 | number | Yes | Target power factor (lagging). Must be > cosφ₁. |
| f | number | Yes | AC line frequency (50 or 60 Hz typical). |
| U | number | Yes | Voltage across the capacitor (line-to-line for a 3-phase bank, or phase voltage for single-phase). |
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-power-factor-correction": {
"name": "power-factor-correction",
"description": "Size the shunt capacitor needed to raise the power factor: C = P·(tanφ₁ − tanφ₂)/(2π·f·U²). Returns compensated reactive power Qc, capacitive reactance Xc, capacitor current Ic, and the required capacitance in F/μF.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=power-factor-correction",
"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": "power-factor-correction",
"arguments": {
"P": 5000,
"cosphi1": 0.7,
"cosphi2": 0.95,
"f": 50,
"U": 400,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}