Math & Numbers
Calcula la caída de tensión por corriente, longitud, sección (AWG o mm²) y material, en DC, monofásico y trifásico
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/voltage-drop-calculator' \
-H 'Content-Type: application/json' \
-d '{"current":15,"lengthM":30,"material":"copper","sizeMode":"awg","awg":"12","areaMm2":2.5,"circuit":"dc1p","sourceVoltage":120}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/voltage-drop-calculator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| current | number | Sí | — |
| lengthM | number | Sí | — |
| material | select | No | — |
| sizeMode | select | No | — |
| awg | select | No | — |
| areaMm2 |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-voltage-drop-calculator": {
"name": "voltage-drop-calculator",
"description": "Calcula la caída de tensión por corriente, longitud, sección (AWG o mm²) y material, en DC, monofásico y trifásico",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=voltage-drop-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "voltage-drop-calculator",
"arguments": {
"current": 15,
"lengthM": 30,
"material": "copper",
"sizeMode": "awg",
"awg": "12",
"areaMm2": 2.5,
"circuit": "dc1p",
"sourceVoltage": 120
}
}
}¿Dudas o problemas? Contacta con [email protected]
| number |
| No |
| — |
| circuit | select | No | — |
| sourceVoltage | number | Sí | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}