API & MCP
Everything a person can do on Schematic Electrical Rules Check (Typed Pins), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ohmforgepinerc.usefulweb.app/api/v1/calculate– run Schematic Electrical Rules Check (Typed Pins)GET https://ohmforgepinerc.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Schematic Electrical Rules Check (Typed Pins)
Run a typed-pin electrical rules check on an Ohmforge schematic: a pin-conflict matrix over input, output, bidirectional, tri-state, passive, power and open-collector pins plus drive rules for inputs, power inputs and open-collector nets.
| Field | Type | Default | Description |
|---|---|---|---|
project | textarea | "{\n \"format\": \"ohmforge\",\n \"version\": 1,\n \"name\": \"Two inverters | Ohmforge project JSON. Paste an exported .ohmforge.json project (at most 200 parts and 200 wires). |
Example request
Two inverter outputs on one net
curl -X POST https://ohmforgepinerc.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"project":"{\n \"format\": \"ohmforge\",\n \"version\": 1,\n \"name\": \"Two inverters fighting\",\n \"parts\": [\n {\n \"id\": \"U1\",\n \"kind\": \"not\",\n \"x\": 0,\n \"y\": 0\n },\n {\n \"id\": \"U2\",\n \"kind\": \"not\",\n \"x\": 0,\n \"y\": 6\n },\n {\n \"id\": \"U3\",\n \"kind\": \"and\",\n \"x\": 12,\n \"y\": 1\n }\n ],\n \"wires\": [\n {\n \"id\": \"w1\",\n \"pts\": [\n [\n 3,\n 0\n ],\n [\n 9,\n 0\n ]\n ]\n },\n {\n \"id\": \"w2\",\n \"pts\": [\n [\n 3,\n 6\n ],\n [\n 6,\n 6\n ],\n [\n 6,\n 0\n ]\n ]\n }\n ]\n}"}'
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://ohmforgepinerc.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ohmforge_pin_erc - Local stdio connector:
node src/mcp-stdio.ts --tool=ohmforge-pin-erc
{
"mcpServers": {
"ohmforge-pin-erc": { "type": "http", "url": "https://ohmforgepinerc.usefulweb.app/mcp" }
}
}