API & MCP

Everything a person can do on Ohmforge Truth Table & Logic Minimiser, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ohmforge Truth Table & Logic Minimiser

Enter a Boolean expression (A·B + A'·C, !(A & B) | C, A xor B …) or a list of minterms with don't cares. You get the truth table, the canonical forms, the minimal sum of products and product of sums (Quine–McCluskey with an exact minimum cover), the Karnaugh map for up to six variables, gate counts and an Ohmforge circuit of 2-input gates that is simulated for every row.

Inputs of Ohmforge Truth Table & Logic Minimiser
FieldTypeDefaultDescription
modeselect (expression, minterms)"expression"Input
expressiontext"A'B'C + A'BC + AB'C + ABC'"Expression. Variables: a letter with an optional number (A, b, x1); AB means A·B. NOT: ' after or ! ~ before; AND: · & * or nothing; OR: + |; XOR: ^. Words AND, OR, NOT, XOR, NAND, NOR, XNOR work too.
variablestext—Variables in order (optional). Comma-separated, first = most significant bit, e.g. A, B, C, D. Expression: empty = alphabetical. Minterm list: empty = A, B, C, D.
mintermstext—Minterms (1 rows). For "Minterm list": numbers and ranges, e.g. 0, 2, 5-7.
dontCarestext—Don't cares (optional). Rows whose output does not matter; the minimiser may use them.
circuitselect (sop, pos)"sop"Circuit form

Example request

A'B'C + A'BC + AB'C + ABC'

curl -X POST https://ohmforgetruthtable.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"expression","expression":"A'B'C + A'BC + AB'C + ABC'"}'

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-truth-table": { "type": "http", "url": "https://ohmforgetruthtable.usefulweb.site/mcp" }
  }
}