API & MCP
Everything a person can do on Resistor Tolerance Analysis, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgecomponenttolerance.usefulweb.site/api/v1/calculate– run Resistor Tolerance AnalysisGET https://ohmforgecomponenttolerance.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Resistor Tolerance Analysis
Run a seeded Monte Carlo analysis on up to eight resistors in a SPICE netlist. Inspect nominal, minimum, maximum and mean output voltage.
| Field | Type | Default | Description |
|---|---|---|---|
netlist | textarea | "Divider\nV1 in 0 10\nR1 in out 1k\nR2 out 0 1k\n.op" | SPICE netlist |
node | text | "out" | Output node |
tolerances | textarea | "R1,5\nR2,5" | Resistor name, tolerance (%) |
runs | number | 100 | Samples |
seed | number | 1 | Random seed |
Example request
Voltage divider with 5% resistors
curl -X POST https://ohmforgecomponenttolerance.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"netlist":"Divider\nV1 in 0 10\nR1 in out 1k\nR2 out 0 1k\n.op","node":"out","tolerances":"R1,5\nR2,5","runs":100,"seed":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://ohmforgecomponenttolerance.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_component_tolerance - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-component-tolerance
{
"mcpServers": {
"ohmforge-component-tolerance": { "type": "http", "url": "https://ohmforgecomponenttolerance.usefulweb.site/mcp" }
}
}