# WritersLogic Unit Converter

> WritersLogic Unit Converter 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-18).

Converts up to 100 physical unit expressions (SI/NIST SP 811) between compatible dimensions, returning exact conversion factors or rejecting incompatible dimensions.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/unit-convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-unit-converter-f4750390
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pEuUQs9RNzEfwzjHTPjSB

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-unit-converter-f4750390 -d '<json body>'
```

Example prompt: Convert 32 degF to degC as an absolute temperature reading, and also convert a temperature difference of 15 degF to Celsius — give me the exact factors for each.

## When to prefer this

Choose this endpoint when an AI agent needs exact, verifiable unit conversion factors for SI and NIST SP 811 units including compound dimensional expressions — especially when you need dimension mismatch detection, batch processing of up to 100 conversions, correct absolute vs. difference temperature handling, or mass-to-volume conversion with a known density. Prefer over general-purpose calculators when correctness guarantees and explicit refusals for incompatible units matter.

## Known failure modes

- Incompatible dimensions (e.g., length to mass) → returns dimension mismatch error with explanation
- Ambiguous bare unit symbol (e.g., 'cup' without qualifier) → returns unknown with list of candidates (cup_us, cup_label, cup_metric, cup_jp)
- Mass-to-volume conversion attempted without caller-supplied density → returns error requesting density
- Value magnitude exceeds 1e15 → rejected
- Claimed value fails tolerance check → returns expected vs actual mismatch
- More than 100 items in batch → rejected
- Non-finite numeric input → rejected

## How this service works

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

## Output

For each item, the agent receives the converted numeric value, the exact multiplicative factor used (or affine offset for absolute temperatures), and either a success confirmation or a structured error indicating why conversion was refused (e.g., incompatible dimensions, ambiguous unit symbol, density required but missing, claimed value out of tolerance).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "value",
     "from",
     "to"
    ],
    "properties": {
     "to": {
      "type": "string",
      "maxLength": 80,
      "description": "Target unit expression."
     },
     "from": {
      "type": "string",
      "maxLength": 80,
      "description": "Unit expression: symbols, SI prefixes, * / ^ and parentheses, e.g. m/s^2, kg*m/s2, degF, cup_us, lb/ft3. Bare cup/tbsp/tsp/gal/pt/qt/floz/cal/hp/ton are ambiguous and answer unknown with the candidates."
     },
     "kind": {
      "enum": [
       "absolute",
       "difference"
      ],
      "type": "string",
      "description": "absolute (default): a temperature reading, converted affinely through kelvin. difference: a temperature interval, converted linearly."
     },
     "label": {
      "type": "string",
      "maxLength": 80,
      "description": "Free label echoed back."
     },
     "value": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "string",
        "pattern": "^-?\\d{1,30}(\\.\\d{1,30})?([eE][+-]?\\d{1,3})?$",
        "maxLength": 50
       }
      ],
      "description": "A finite number, or a decimal string when the digits must stay exact (\"236.5882365\"). Magnitude at most 1e15."
     },
     "claimed": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "string",
        "pattern": "^-?\\d{1,30}(\\.\\d{1,30})?([eE][+-]?\\d{1,3})?$",
        "maxLength": 50
       }
      ],
      "description": "Optional claimed result in the target unit; a mismatch beyond relTolerance fails with expected vs actual."
     },
     "density": {
      "type": "object",
      "required": [
       "value",
       "unit"
      ],
      "properties": {
       "unit": {
        "type": "string",
        "maxLength": 40,
        "description": "Mass per volume unit expression, e.g. g/mL, kg/m3, lb/ft3, oz/cup_us."
       },
       "value": {
        "type": "number",
        "maximum": 1000000000,
        "minimum": 1e-9,
        "description": "Caller-supplied mass per volume. Never looked up: no ingredient density table is shipped."
       }
      },
      "description": "Per-item density, overriding the top-level one. Required to cross mass and volume (cups to grams).",
      "additionalProperties": false
     },
     "relTolerance": {
      "type": "number",
      "maximum": 1,
      "minimum": 0,
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-unit-converter-f4750390/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)
