# WritersLogic Lossy Conversion & Identifier Mangling Detector

> WritersLogic Lossy Conversion & Identifier Mangling Detector 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).

Analyzes JSON scalar literals against target numeric/decimal types to report exact, lossy, or overflow status, and diagnoses identifier mangling between before/after string pairs

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/lossy-conversion?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-lossy-conversion-identifier-mangling-detector-5d02eb8f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FPplpi1m4mxB35sjUMhgc

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-lossy-conversion-identifier-mangling-detector-5d02eb8f -d '<json body>'
```

Example prompt: Check whether the JSON literals 9007199254740993, 0.10, and "007" are exact or lossy when stored as float64, int32, and excel-number — and tell me what value each target would actually hold.

## When to prefer this

Use this endpoint when an AI agent needs to verify data fidelity before moving JSON values across type boundaries — specifically into float64/float32, integer types, PostgreSQL numeric, Arrow/Parquet decimals, Excel cells, or pandas int64 — without actually performing the conversion. Also ideal for diagnosing why identifiers or strings changed after a round trip through a spreadsheet or database system. Prefer this over generic type-checking when you need the precise rule that caused lossiness, the exact value the target would hold, or a named diagnosis of string mangling.

## Known failure modes

- Invalid JSON literal syntax in samples array returns a parse error for that item
- Unknown or malformed target type string returns an error for that pair
- Samples or targets arrays exceeding max length (200/12) are rejected
- Pairs array exceeding 200 items is rejected
- Malformed before/after pair objects (missing required fields) return validation errors

## 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 (sample, target) pair: a status of exact, lossy, or overflow; the rule explaining why; and the actual value the target system would hold. For identifier pairs: a named diagnosis of what transformation occurred (e.g. leading zeros stripped, date coercion, 15-digit rounding, NFC normalization, scientific notation, trimming, truncation).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pairs": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "before",
     "after"
    ],
    "properties": {
     "after": {
      "type": "string",
      "maxLength": 400
     },
     "before": {
      "type": "string",
      "maxLength": 400
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "description": "Identifier or text values before and after a round trip through another system."
  },
  "samples": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 400
   },
   "maxItems": 200,
   "description": "Raw JSON scalar literals exactly as written, e.g. 9007199254740993, \"007\", 1e400, 0.10, null."
  },
  "targets": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 40
   },
   "maxItems": 12,
   "description": "Target types: float64, float32, int8, int16, int32, int64, uint8, uint16, uint32, uint64, numeric(p,s), decimal128(p,s), decimal256(p,s), parquet-decimal(p,s), excel-number, pandas-int64."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-lossy-conversion-identifier-mangling-detector-5d02eb8f/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)
