Development
Gray Code and Thermometer BCD Encoder Visualizer
Convert an N-bit value to binary, Gray, one-hot and thermometer codes with a counting truth table, Hamming-distance chart and Verilog/VHDL encoder stubs.
html· HTML resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/gray-code-and-thermometer-bcd-encoder-visualizer' \
-H 'Content-Type: application/json' \
-d '{"bits":"4","value":11,"outputLanguage":"both","showFullSequence":true}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/gray-code-and-thermometer-bcd-encoder-visualizerParameters
| Name | Type | Required | Description |
|---|---|---|---|
| bits | select | No | — |
| value | number | No | — |
| outputLanguage | select | No | — |
| showFullSequence | checkbox | No | — |
Response format
HTML result
JSON
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-gray-code-and-thermometer-bcd-encoder-visualizer": {
"name": "gray-code-and-thermometer-bcd-encoder-visualizer",
"description": "Convert an N-bit value to binary, Gray, one-hot and thermometer codes with a counting truth table, Hamming-distance chart and Verilog/VHDL encoder stubs.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=gray-code-and-thermometer-bcd-encoder-visualizer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "gray-code-and-thermometer-bcd-encoder-visualizer",
"arguments": {
"bits": "4",
"value": 11,
"outputLanguage": "both",
"showFullSequence": true
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
Questions or issues? Contact [email protected]