Design
Convert colors to grayscale with multiple conversion methods and intensity control
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/color-grayscale-converter' \
-H 'Content-Type: application/json' \
-d '{"baseColor":"#FF5733","conversionMethod":"luminosity","intensity":100,"singleChannel":"green","customWeights":"{\n \"red\": 30,\n \"green\": 59,\n \"blue\": 11\n}","preserveLuminance":true,"batchColors":"#FF0000, #00FF00, #0000FF","includeOriginal":true,"showComparison":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/color-grayscale-converter| Name | Type | Required | Description |
|---|---|---|---|
| baseColor | color | Yes | — |
| conversionMethod | select | No | — |
| intensity | range | No | — |
| singleChannel | select | No | — |
| customWeights | textarea | No | Enter custom weights as JSON format. Example: {"red": 30, "green": 59, "blue": 11} |
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-color-grayscale-converter": {
"name": "color-grayscale-converter",
"description": "Convert colors to grayscale with multiple conversion methods and intensity control",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=color-grayscale-converter",
"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": "color-grayscale-converter",
"arguments": {
"baseColor": "#FF5733",
"conversionMethod": "luminosity",
"intensity": 100,
"singleChannel": "green",
"customWeights": "{\n \"red\": 30,\n \"green\": 59,\n \"blue\": 11\n}",
"preserveLuminance": true,
"batchColors": "#FF0000, #00FF00, #0000FF",
"includeOriginal": true,
"showComparison": true
}
}
}| preserveLuminance | checkbox | No | — |
| batchColors | text | No | Enter multiple colors separated by commas (e.g., #FF0000, #00FF00, #0000FF) |
| includeOriginal | checkbox | No | — |
| showComparison | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]