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
POST https://opsdecknormalizationchecker.usefulweb.site/api/v1/calculate– run Opsdeck Normalization Checker (keys, minimal cover, 2NF/3NF/BCNF, decomposition)GET https://opsdecknormalizationchecker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
relation | text | — | Relation. Name and attributes. Leave empty to take the attributes from the header of the sample rows. |
fds | textarea | — | Functional dependencies (one per line). Write A, B -> C, D. With one-letter attributes AB -> C works too. |
decomposition | textarea | — | Decomposition to test (optional). One relation per line; the tool runs the chase test and the dependency-preservation test on it. |
sampleCsv | textarea | — | 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. |
maxLhs | integer | 2 | Largest left side to search in the sample |
useMinedFds | boolean | true | Use 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)
- Streamable HTTP endpoint:
https://opsdecknormalizationchecker.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
opsdeck_normalization_checker - Local stdio connector:
node src/mcp-stdio.ts --tool=opsdeck-normalization-checker
{
"mcpServers": {
"opsdeck-normalization-checker": { "type": "http", "url": "https://opsdecknormalizationchecker.usefulweb.site/mcp" }
}
}