API & MCP
Everything a person can do on Layer Blend Color Mixer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminablendmixer.usefulweb.site/api/v1/calculate– run Layer Blend Color MixerGET https://luminablendmixer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Layer Blend Color Mixer
Mix a source HEX color over a backdrop using normal, multiply, screen, overlay, darken, lighten, difference or exclusion. Calculate the final sRGB color at a chosen layer opacity.
| Field | Type | Default | Description |
|---|---|---|---|
backdrop | text | "#c8d6bd" | Backdrop HEX |
source | text | "#426a60" | Source HEX |
opacity | number | 60 | Source opacity (%) |
mode | select (normal, multiply, screen, overlay, darken, lighten, difference, exclusion) | "multiply" | Blend mode |
Example request
A gentle green multiply tint
curl -X POST https://luminablendmixer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"backdrop":"#c8d6bd","source":"#426a60","opacity":60,"mode":"multiply"}'
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://luminablendmixer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_blend_mixer - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-blend-mixer
{
"mcpServers": {
"lumina-blend-mixer": { "type": "http", "url": "https://luminablendmixer.usefulweb.site/mcp" }
}
}