Design
Apply Contrast Limited Adaptive Histogram Equalization for local contrast enhancement
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-clahe' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/image-clahe' \
-F 'imageFile=/path/to/file.ext' \
-F 'tileSize=64' \
-F 'contrastLimit=3' \
-F 'brightnessLimit=0.01' \
-F 'gridSize=8' \
-F 'format=original' \
-F 'quality=95'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/image-clahe| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) to apply CLAHE histogram equalization |
| tileSize | range | No | Size of tiles for local histogram equalization. Smaller tiles provide more local contrast enhancement |
| contrastLimit | range | No | Contrast amplification limit. Higher values allow stronger contrast enhancement but may amplify noise |
| brightnessLimit | range | No | Brightness amplification limit. Lower values prevent over-amplification of bright areas |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-image-clahe": {
"name": "image-clahe",
"description": "Apply Contrast Limited Adaptive Histogram Equalization for local contrast enhancement",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-clahe",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-clahe",
"arguments": {
"imageFile": "https://example.com/file.ext",
"tileSize": 64,
"contrastLimit": 3,
"brightnessLimit": 0.01,
"gridSize": 8,
"format": "original",
"quality": 95
}
}
}| gridSize | range | No | Number of grid divisions. Higher values create more tiles for finer local enhancement |
| format | select | No | Choose output format or keep original. PNG recommended for maximum quality |
| quality | number | No | Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]