{"uid":"cap_LWjUd1kJ9Q0Sz54G09SYR","slug":"writerslogic-electrical-calculator-835cc68e","name":"WritersLogic Electrical Calculator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/electrical-calc?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["ohm","series","parallel","divider","led-resistor","line-drop","colour-decode","colour-encode","e-series"],"type":"string","description":"ohm | series | parallel | divider | led-resistor | line-drop | colour-decode | colour-encode | e-series."},"r1":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"divider: top resistor, ohms."},"r2":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"divider: bottom resistor, ohms."},"vin":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"divider: input volts."},"bands":{"type":"array","items":{"type":"string","maxLength":12,"description":"Colour name, head end first (IEC 60062 table)."},"maxItems":6,"minItems":3,"description":"colour-decode: 3 to 6 colours read from the head end."},"claim":{"type":"object","description":"Optional map from an output value name (e.g. resistance, vout, minResistance) to the number you expect."},"power":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"ohm: watts."},"rLoad":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"divider: optional load across r2, ohms."},"series":{"enum":["E3","E6","E12","E24","E48","E96","E192"],"type":"string","description":"led-resistor (default E24) and e-series: preferred-value series."},"tcrPpm":{"type":"number","maximum":1000,"minimum":0,"description":"colour-encode with 6 bands: temperature coefficient in ppm/K."},"areaMm2":{"type":"number","maximum":1000000000000000,"minimum":0,"description":"line-drop: conductor cross-section in mm^2."},"current":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"ohm, led-resistor, line-drop: amperes."},"lengthM":{"type":"number","maximum":1000000000000000,"minimum":0,"description":"line-drop: one-way length in metres."},"voltage":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"ohm: volts."},"bandCount":{"type":"integer","maximum":6,"minimum":3,"description":"colour-encode: 3, 4 (default), 5 or 6 bands. 5 and 6 bands carry three digits."},"roundTrip":{"type":"boolean","description":"line-drop: count out and return conductors (default true)."},"resistance":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"ohm: ohms. colour-encode and e-series: the value in ohms."},"resistances":{"type":"array","items":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"number"},"maxItems":100,"description":"series/parallel: ohms, at most 100."},"tolerancePct":{"type":"number","maximum":100,"minimum":0,"description":"series/parallel: shared tolerance percent for min/max bounds. colour-encode: tolerance percent to encode."},"supplyVoltage":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"led-resistor: supply volts. line-drop: optional, enables dropPercent."},"forwardVoltage":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"led-resistor: LED forward volts."},"maxDropPercent":{"type":"number","maximum":100,"minimum":0,"description":"line-drop: fail when the drop exceeds this percent of supplyVoltage."},"resistivityOhmM":{"type":"number","maximum":1,"minimum":0,"description":"line-drop: conductor resistivity in ohm-metres, supplied by the caller (not looked up)."},"claimTolerancePct":{"type":"number","maximum":100,"minimum":0,"description":"Relative tolerance for claim values, percent (default 0: exact)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VX-AFH3MkHnsFQk5mzYH7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs exact-decimal DC circuit calculations including Ohm's law, series/parallel resistance, voltage dividers, LED resistor sizing, conductor voltage drop, and IEC 60062 resistor colour code encoding/decoding with optional pass/fail claim validation.","exampleAgentPrompt":"Using the ohm operation, what is the resistance and power if the voltage is 12 V and the current is 0.5 A? Also check whether the resistance equals 24 ohms within 5% tolerance.","exampleUseCases":[{"title":"LED resistor sizing for 3.3V circuit","prompt":"I have an LED with a forward voltage of 2.0 V drawing 20 mA and I'm running it from 3.3 V — what series resistor do I need, rounded up to the nearest E24 preferred value?"},{"title":"Decode unknown resistor colour bands","prompt":"I've got a 5-band resistor with colours brown, black, black, red, brown from head to tail — can you decode that to an ohm value and tolerance for me?"},{"title":"Verify parallel resistance calculation","prompt":"I'm combining a 10 kΩ and a 22 kΩ resistor in parallel — calculate the equivalent resistance and tell me whether it falls within 5% of 6.875 kΩ so I can confirm my hand calc is right."}],"resultDescription":"Returns the computed circuit values as exact decimals (e.g. resistance, voltage, current, power, vout, voltage drop, colour band array, nearest E-series value). When a claim map is supplied, each claimed output is tagged as pass or fail with the actual value and the tolerance band. Errors are returned for invalid inputs or unsupported operations.","failureModes":["Insufficient known quantities for Ohm's law (fewer than 2 of V, I, R, P provided)","Invalid or unrecognised colour name in colour-decode bands array","Requested E-series not supported (outside E3–E192)","Negative or zero cross-section area for line-drop","Missing required fields for the selected operation (e.g. no vin for divider)","Value outside allowed numeric range (±1e15)","Claim map references an output field that does not exist for the chosen operation"],"whenToPreferThis":"Use this endpoint when an AI agent needs exact, auditable DC circuit arithmetic — especially when a claim needs pass/fail verification against a tolerance, or when standard IEC 60062 colour code encoding/decoding is required. Prefer it over general-purpose calculators because it handles preferred E-series rounding, tolerance bounds on series/parallel results, and exact decimal arithmetic without floating-point drift. It is not suitable for AC, reactive, or non-linear circuit simulation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:33:00.144Z","isFirstParty":false,"canonicalSlug":"writerslogic-electrical-calculator-835cc68e"}