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

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.

Inputs of Schematic Electrical Rules Check (Typed Pins)
FieldTypeDefaultDescription
projecttextarea"{\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)

{
  "mcpServers": {
    "ohmforge-pin-erc": { "type": "http", "url": "https://ohmforgepinerc.usefulweb.app/mcp" }
  }
}