{"uid":"cap_VttoxtEI0nTax3I_M5Pyi","slug":"writerslogic-json-mutation-intent-checker-8dbdf361","name":"WritersLogic JSON Mutation Intent Checker","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/mutation-intent?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"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_0eXpn-2_NqOnX6veUGvo_","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":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Guarding protected fields before PUT","prompt":"I'm about to update a user record via PUT — here's the JSON I originally read and here's the modified version I'm about to send. Can you check for any destructive changes and make sure the fields /id and /created_at haven't been touched at all?"},{"title":"Detecting accidental array shrinkage in bulk update","prompt":"Before I submit this bulk update, compare the original order JSON with the modified one and tell me if any array items were removed or if any objects got emptied — I want to allow destructive changes only under /line_items."},{"title":"Auditing PATCH payload for unexpected type changes","prompt":"Can you diff these two JSON documents for me? I want to know every field where the type changed or a value went from non-null to omitted — especially anything under /metadata, which must stay exactly as it was."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:35:58.057Z","isFirstParty":false,"canonicalSlug":"writerslogic-json-mutation-intent-checker-8dbdf361"}