# WritersLogic JSON Mutation Intent Checker

> WritersLogic JSON Mutation Intent Checker 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).

Compares a before/after JSON document pair and lists every destructive or structural change by JSON Pointer, failing if protected paths are touched or destructive changes are not explicitly allowed.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/mutation-intent?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-json-mutation-intent-checker-8dbdf361
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VttoxtEI0nTax3I_M5Pyi

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-json-mutation-intent-checker-8dbdf361 -d '<json body>'
```

Example prompt: Before I send this PUT request, check the before and after JSON for me — flag any removed members, type changes, emptied arrays, or structural mutations, and make sure nothing under /user/id or /account/status has been touched.

## When to prefer this

Use this endpoint when an AI agent is about to perform a PUT, PATCH, or bulk update and needs a machine-readable, JSON-Pointer-keyed diff that specifically highlights destructive or structural mutations and enforces path-level protection rules — rather than a simple text diff or semantic comparison. It is especially valuable when you need to enforce a no-touch policy on specific paths (like IDs or audit timestamps) and want the call to fail fast before writing.

## Known failure modes

- Protected path violation: a change was detected on a path listed in protectedPaths, returning a failure with the offending pointer
- Destructive change not allowed: a deletion, emptied container, or type change was found on a path not listed in allowDestructive
- Malformed JSON Pointer: an entry in protectedPaths or allowDestructive is not a valid JSON Pointer syntax
- Input too large: before/after documents exceed service limits
- Missing required fields: before or after document not supplied

## How this service works

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

## Output

A structured report listing every detected change keyed by JSON Pointer, including: removed object members, null-to-omitted and omitted-to-null transitions, arrays that were emptied or shrunk, objects that were emptied, and type changes. If a change touches a protected path or is destructive without being listed in allowDestructive, the call fails with an error indicating which path triggered the violation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "after": {
   "description": "JSON value about to be written."
  },
  "before": {
   "description": "JSON value as last read."
  },
  "protectedPaths": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 300
   },
   "maxItems": 100,
   "description": "JSON Pointers that must not change at all; a \"*\" token matches any one key or index."
  },
  "allowDestructive": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 300
   },
   "maxItems": 100,
   "description": "JSON Pointers (\"*\" wildcard) under which deletes, emptied containers and type changes are intended."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-json-mutation-intent-checker-8dbdf361/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)
