Design
Convert XYZ color values to HEX for screen display
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/xyz-to-hex-converter' \
-H 'Content-Type: application/json' \
-d '{"xyz":"Enter XYZ values, one per line:\nxyz(41.24,21.26,1.93)\nxyz(20.18,39.42,35.76)\n95.05,100.00,108.88\nX:41.24 Y:21.26 Z:1.93","format":"hash"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/xyz-to-hex-converter| Name | Type | Required | Description |
|---|---|---|---|
| xyz | textarea | Yes | — |
| format | select | Yes | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-xyz-to-hex-converter": {
"name": "xyz-to-hex-converter",
"description": "Convert XYZ color values to HEX for screen display",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=xyz-to-hex-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": "xyz-to-hex-converter",
"arguments": {
"xyz": "Enter XYZ values, one per line:\nxyz(41.24,21.26,1.93)\nxyz(20.18,39.42,35.76)\n95.05,100.00,108.88\nX:41.24 Y:21.26 Z:1.93",
"format": "hash"
}
}
}Questions or issues? Contact [email protected]