API & MCP
Everything a person can do on Parametric Sketch Constraint Solver, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kerfwisesketchconstraintsolver.usefulweb.site/api/v1/calculate– run Parametric Sketch Constraint SolverGET https://kerfwisesketchconstraintsolver.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Parametric Sketch Constraint Solver
Solve points, lines, arcs and circles under geometric and dimensional constraints driven by named parameters. Get exact coordinates, the remaining degrees of freedom, redundant and conflicting constraints, and the profile extruded as a Kerfwise Form Studio solid.
| Field | Type | Default | Description |
|---|---|---|---|
sketch | textarea | "{\n \"points\": [\n {\n \"id\": \"p1\",\n \"x\": 0,\n \"y\": | Sketch JSON (points, entities, constraints, optional height). Points {id, x, y} in mm; entities line {a, b}, arc {c, a, b} counter-clockwise, circle {c, r}; constraints {id, type, refs, value}. |
parameters | textarea | "W = 600\nD = 400\nR = 100\nT = 19" | Parameters (one “name = expression” per line). Each expression may use the parameters above it, for example D = W / 2. |
name | text | "Sketch solid" | Solid name |
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://kerfwisesketchconstraintsolver.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kerfwise_sketch_constraint_solver - Local stdio connector:
node src/mcp-stdio.ts --tool=kerfwise-sketch-constraint-solver
{
"mcpServers": {
"kerfwise-sketch-constraint-solver": { "type": "http", "url": "https://kerfwisesketchconstraintsolver.usefulweb.site/mcp" }
}
}