{"uid":"cap_wE_zMH7I2sPCTTUCInR1s","slug":"json-patch-preview-05c591d2","name":"JSON Patch Preview","description":"JSON Patch Preview: JSON Patch Preview previews bounded add, remove, and replace operations without mutating a source from bounded caller-supplied values without an external provider. Call JSON Patch Preview before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Patch Preview as versioned deterministic JSON. Price: $0.001…","url":"https://api.delx.ai/api/v1/x402/json-patch-preview","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"document":{"type":"object","description":"Document supplied to JSON Patch Preview; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"operations":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Operations supplied to JSON Patch Preview; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"applied":[{"op":"replace","path":"/a"}],"document":{"a":3,"b":2}},"schema":"delx/util-json-patch-preview/v1","status":"pass","evidence":{"retained":false,"input_sha256":"78f7a2a56a7bfe0eec5560ff1927abdda80d4fa011949f01969dc425b5d568a8","external_calls":0},"operation":"data_batch:json_patch_preview"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_644TA8_3AXMZ1LDH4tMGT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Previews the result of JSON Patch add, remove, and replace operations on a document without mutating the source, returning counts, normalized values, and a versioned result contract.","exampleAgentPrompt":"Before sending this config JSON to the deployment tool, preview what it'll look like after applying these patch operations — add 'debug: true' at /settings/debug, remove /legacy/oldField, and replace /version with '2.1' — without actually changing anything.","exampleUseCases":[{"title":"Preflight patch before downstream API call","prompt":"I'm about to send an updated user profile JSON to a strict third-party API. Can you preview what it'll look like after I apply these patch ops — add a 'verified' field, remove 'legacyId', and replace 'email' with the new address — so I can confirm it's correct before committing?"},{"title":"Validate batch patch plan for structured config","prompt":"I have a configuration document and a list of 12 patch operations my pipeline generated. Before I apply them, can you run a dry-run preview and tell me the resulting document, how many operations succeeded, and whether any normalized values look off?"},{"title":"Sanity-check agent-generated patch before tool handoff","prompt":"My planning agent built a JSON patch to update this order manifest — adding two new line items and replacing the total. Can you preview the final document so I can verify the shape and counts match what the fulfillment tool expects before handing it off?"}],"resultDescription":"Returns the simulated post-patch document, operation counts (how many add/remove/replace ops were applied), normalized field values, and a versioned deterministic result contract — all computed in-memory without retaining or mutating the source document.","failureModes":["Document exceeds 128 property limit — returns validation error","Operations array exceeds 256 items — returns bounds error","Malformed patch operation objects — returns schema validation finding","Invalid JSON Patch path (e.g. path not found for remove/replace) — returns operation-level error with details","Missing document or operations fields — returns 400-level error"],"whenToPreferThis":"Choose this endpoint when an agent needs to verify the outcome of JSON Patch operations before committing them to a downstream system with a strict contract. It is ideal as a preflight step when the patch was machine-generated (e.g. by a planning agent) and correctness must be confirmed without side effects. Prefer it over manually simulating patches when you need versioned, deterministic output with counts and normalized values suitable for audit or handoff logging.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:58:27.825Z","isFirstParty":false}