Resistor Code
resistor_codeIEC 60062 resistor color code. Decode 3 to 6 bands, or encode a resistance that lands exactly on a digit-and-multiplier value. Digits run black=0 through white=9. Multipliers run from silver (×0.01) and gold (×0.1) through white (×1e9). Tolerances: brown 1%, red 2%, green 0.5%, blue 0.25%, violet 0.1%, grey 0.05%, gold 5%, silver 10%. Three bands mean 20% and have no tolerance band. The sixth band is the temperature coefficient in ppm/K: black 250, brown 100, red 50, orange 15, yellow 25, green 20, blue 10, violet 5, grey 1. Grey may be spelled gray. This does not measure a part. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/resistor-code
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "resistor_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ohms | No | Resistance to encode. Exact decimal or a fraction such as 47/10. | |
| bands | No | Colors, commas or spaces. Omit to encode ohms instead. | |
| count | No | Bands when encoding. Default 4. Three bands are 20%. | |
| tempco | No | ppm/K. Required for 6 bands, and only then. | |
| tolerance | No | Percent when encoding: 0.05, 0.1, 0.25, 0.5, 1, 2, 5, 10, or 20. Default 5% for 4 bands, 1% for 5 or 6, 20% for 3. |