Math & Numbers
Decode and encode 4-band, 5-band, 6-band, and SMD resistor markings
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/resistor-color-code-calculator' \
-H 'Content-Type: application/json' \
-d '{"mode":"decode","format":"4-band","smdStyle":"auto","band1":"yellow","band2":"violet","band3":"black","multiplierBand":"red","toleranceBand":"gold","tempcoBand":"brown","smdCode":"e.g. 472, 1001, 4R7, 01C","resistanceValue":"e.g. 4.7k, 1M, 330, 0R22","tolerance":"gold","temperatureCoefficient":"brown","precision":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/resistor-color-code-calculator| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | Yes | — |
| format | select | Yes | — |
| smdStyle | select | No | — |
| band1 | select | No | — |
| band2 | select | No | — |
| band3 |
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-resistor-color-code-calculator": {
"name": "resistor-color-code-calculator",
"description": "Decode and encode 4-band, 5-band, 6-band, and SMD resistor markings",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=resistor-color-code-calculator",
"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": "resistor-color-code-calculator",
"arguments": {
"mode": "decode",
"format": "4-band",
"smdStyle": "auto",
"band1": "yellow",
"band2": "violet",
"band3": "black",
"multiplierBand": "red",
"toleranceBand": "gold",
"tempcoBand": "brown",
"smdCode": "e.g. 472, 1001, 4R7, 01C",
"resistanceValue": "e.g. 4.7k, 1M, 330, 0R22",
"tolerance": "gold",
"temperatureCoefficient": "brown",
"precision": 4
}
}
}| select |
| No |
| — |
| multiplierBand | select | No | — |
| toleranceBand | select | No | — |
| tempcoBand | select | No | — |
| smdCode | text | No | — |
| resistanceValue | text | No | — |
| tolerance | select | No | — |
| temperatureCoefficient | select | No | — |
| precision | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]