API & MCP

Everything a person can do on Opsdeck Normalization Checker (keys, minimal cover, 2NF/3NF/BCNF, decomposition), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Opsdeck Normalization Checker (keys, minimal cover, 2NF/3NF/BCNF, decomposition)

Enter a relation and its functional dependencies (or paste sample rows and let the tool propose dependencies as hypotheses with support counts). You get attribute closures, all candidate keys, prime attributes, a minimal cover, the highest normal form with every violating dependency explained, a 3NF synthesis (Bernstein: lossless and dependency preserving) and a BCNF decomposition, each with the chase test for lossless joins and the dependency-preservation test. Any decomposition of your own can be tested too.

Inputs of Opsdeck Normalization Checker (keys, minimal cover, 2NF/3NF/BCNF, decomposition)
FieldTypeDefaultDescription
relationtext—Relation. Name and attributes. Leave empty to take the attributes from the header of the sample rows.
fdstextarea—Functional dependencies (one per line). Write A, B -> C, D. With one-letter attributes AB -> C works too.
decompositiontextarea—Decomposition to test (optional). One relation per line; the tool runs the chase test and the dependency-preservation test on it.
sampleCsvtextarea—Sample rows (CSV with header, optional). Dependencies that hold in every row are proposed as hypotheses with support counts. A sample can only refute a dependency, never prove it.
maxLhsinteger2Largest left side to search in the sample
useMinedFdsbooleantrueUse the dependencies found in the sample for the analysis

Example request

EMP_PROJ: partial dependencies (not 2NF) (Elmasri & Navathe)

curl -X POST https://opsdecknormalizationchecker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"relation":"EMP_PROJ(Ssn, Pnumber, Hours, Ename, Pname, Plocation)","fds":"Ssn, Pnumber -> Hours\nSsn -> Ename\nPnumber -> Pname, Plocation"}'

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": {
    "opsdeck-normalization-checker": { "type": "http", "url": "https://opsdecknormalizationchecker.usefulweb.site/mcp" }
  }
}