API & MCP
Everything a person can do on PCB Via Estimator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgepcbviaestimator.usefulweb.site/api/v1/calculate– run PCB Via EstimatorGET https://ohmforgepcbviaestimator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
PCB Via Estimator
Estimate a plated copper via barrel’s resistance, voltage drop, and power loss at 20 °C.
| Field | Type | Default | Description |
|---|---|---|---|
finishedHoleMm | number | 0.4 | Finished hole diameter. Diameter of the empty hole after plating, not the drill diameter. |
platingMm | number | 0.035 | Finished copper plating thickness. Copper thickness in the barrel; 0.025 mm = 25 µm. |
lengthMm | number | 1.6 | Conducting via length. Length of the plated barrel carrying the current. |
currentA | number | 1 | Current |
Example request
0.4 mm hole, 35 µm plating, 1 A
curl -X POST https://ohmforgepcbviaestimator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"finishedHoleMm":0.4,"platingMm":0.035,"lengthMm":1.6,"currentA":1}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://ohmforgepcbviaestimator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_pcb_via_estimator - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-pcb-via-estimator
{
"mcpServers": {
"ohmforge-pcb-via-estimator": { "type": "http", "url": "https://ohmforgepcbviaestimator.usefulweb.site/mcp" }
}
}