# WritersLogic Electrical Calculator

> WritersLogic Electrical Calculator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/electrical-calc?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-electrical-calculator-835cc68e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LWjUd1kJ9Q0Sz54G09SYR

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-electrical-calculator-835cc68e -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-electrical-calculator-835cc68e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
