API & MCP
Everything a person can do on Equation Art Studio, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://equationartstudio.usefulweb.site/api/v1/calculate– run Equation Art StudioGET https://equationartstudio.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Equation Art Studio
Type x(t) and y(t), or r(θ), or start from a preset (Lissajous, rose, spirograph, butterfly, heart), add rotational symmetry and a colour palette, and get a crisp SVG artwork plus a PNG download. Expressions are parsed safely (no code execution) and support + − × ÷ ^, sin, cos, tan, sqrt, abs, exp, log, pi and e.
| Field | Type | Default | Description |
|---|---|---|---|
curve | select (parametric, polar, lissajous, rose, spirograph, butterfly, heart) | "spirograph" | Curve |
xExpr | text | "cos(t) + cos(6t)/2 + sin(14t)/3" | x(t). Used for “my own parametric curve”. Variables: t, a, b, c, d. Implicit multiplication works: 2t, 3sin(t). |
yExpr | text | "sin(t) + sin(6t)/2 + cos(14t)/3" | y(t) |
rExpr | text | "1 + 0.5*cos(5theta)" | r(θ). Used for “my own polar curve”. Write θ as theta or t. |
tMin | text | — | t from. A number or constant expression such as 0 or -pi. Empty = preset default (0). |
tMax | text | — | t to. E.g. 2*pi. Empty = preset default (2π, or a full period for roses and spirographs). |
a | number | — | a. Parameter for presets and your expressions. Empty = preset default. |
b | number | — | b |
c | number | — | c |
d | number | — | d |
samples | integer | 2000 | Samples. More samples = smoother curves. Samples × symmetry copies is limited to 24,000. |
symmetry | integer | 1 | Rotational symmetry (copies) |
palette | select (sunset, ocean, forest, neon, rainbow, mono) | "sunset" | Palette |
strokeWidth | number | 2 | Line width |
png | boolean | true | Also render a PNG download |
Example request
Spirograph, sunset palette
curl -X POST https://equationartstudio.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"curve":"spirograph","a":7,"b":4,"c":3,"samples":2000,"symmetry":1,"palette":"sunset","strokeWidth":2}'
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://equationartstudio.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
equation_art_studio - Local stdio connector:
node src/mcp-stdio.ts --tool=equation-art-studio
{
"mcpServers": {
"equation-art-studio": { "type": "http", "url": "https://equationartstudio.usefulweb.site/mcp" }
}
}