API & MCP
Everything a person can do on Two-Color Ramp Mixer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://fliplinecolorramp.usefulweb.site/api/v1/calculate– run Two-Color Ramp MixerGET https://fliplinecolorramp.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Two-Color Ramp Mixer
Interpolate 2–24 opaque colors between two HEX endpoints. Compare encoded sRGB and linear-light mixing, then download HEX, GIMP GPL, JASC-PAL and CSS palettes for your drawing workflow.
| Field | Type | Default | Description |
|---|---|---|---|
from | text | "#30585D" | First HEX color |
to | text | "#EBC17E" | Second HEX color |
count | integer | 7 | Ramp colors |
space | select (linear, srgb) | "linear" | Mixing space |
Example request
Seven drawing colors
curl -X POST https://fliplinecolorramp.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"from":"#30585D","to":"#EBC17E","count":7,"space":"linear"}'
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://fliplinecolorramp.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_color_ramp - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-color-ramp
{
"mcpServers": {
"flipline-color-ramp": { "type": "http", "url": "https://fliplinecolorramp.usefulweb.site/mcp" }
}
}