API & MCP
Everything a person can do on Photo Histogram & Clipping Analyzer, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminahistogramanalyzer.usefulweb.site/api/v1/calculate– run Photo Histogram & Clipping AnalyzerGET https://luminahistogramanalyzer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Photo Histogram & Clipping Analyzer
Upload a photo to measure luminance and RGB distributions, shadow and highlight clipping, and tonal percentiles. Download the full 256-bin analysis and get percentile-based black and white starting points.
| Field | Type | Default | Description |
|---|---|---|---|
image (required) | file | — | Image (PNG, JPEG or WebP; up to 8 MB and 16 MP) |
Example request
Inspect a red image
curl -X POST https://luminahistogramanalyzer.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"image":{"filename":"sample.png","contentType":"image/png","contentBase64":"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX/////AADrWueTAAAAEklEQVQI12NgIBb8/09dgjgAAPcnH+GApkH4AAAAAElFTkSuQmCC"}}'
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://luminahistogramanalyzer.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_histogram_analyzer - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-histogram-analyzer
{
"mcpServers": {
"lumina-histogram-analyzer": { "type": "http", "url": "https://luminahistogramanalyzer.usefulweb.site/mcp" }
}
}