{"uid":"cap_iJLH60c7quxlV_SA-LVqQ","slug":"writerslogic-update-dialect-verifier-8ed9b8ec","name":"WritersLogic Update Dialect Verifier","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/update-dialect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"target":{"description":"Current document, if available. Enables applying the patch and exact checks."},"dialect":{"enum":["merge-patch","json-patch","caller"],"type":"string","description":"merge-patch = RFC 7396, json-patch = RFC 6902 (payload is an array of operations), caller = semantics in callerSemantics."},"intents":{"type":"array","items":{"type":"object","required":["path","expect"],"properties":{"path":{"type":"string","maxLength":300,"description":"JSON Pointer into the document."},"value":{"description":"Required when expect is 'value'."},"expect":{"enum":["unchanged","absent","null","empty-array","empty-string","value"],"type":"string"}},"additionalProperties":false},"maxItems":100},"payload":{"description":"The PATCH body."},"callerSemantics":{"type":"object","required":["omitted","null","emptyArray","emptyString"],"properties":{"null":{"enum":["clear","set-null","keep","invalid"],"type":"string"},"omitted":{"enum":["keep","clear"],"type":"string"},"emptyArray":{"enum":["clear","replace","keep"],"type":"string"},"emptyString":{"enum":["clear","set","keep"],"type":"string"}},"description":"Required when dialect is 'caller': what each payload form means in that API.","additionalProperties":false}}},"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_6hM2R50xOrgne9fpRXRYg","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":"Validates a PATCH request body against declared patch semantics (RFC 7396 merge-patch, RFC 6902 JSON Patch, or custom) and checks whether each field's treatment matches stated intents like 'clear', 'keep', or 'set to empty'.","exampleAgentPrompt":"Before I send this PATCH request, check whether my merge-patch body correctly expresses my intents: I want to clear the 'bio' field (setting it to null), leave 'username' unchanged by omitting it, and set 'tags' to an empty array — here's the payload: {\"bio\": null, \"tags\": []}","exampleUseCases":[{"title":"Merge-patch null deletion safety check","prompt":"I'm about to PATCH a user profile using RFC 7396 merge-patch. My payload is {\"avatar\": null, \"nickname\": \"sam\"} and I want to clear 'avatar' but keep 'nickname'. Can you verify that null will delete 'avatar' and that 'nickname' will be set to 'sam', not cleared?"},{"title":"JSON Patch intent verification with target doc","prompt":"I have a JSON Patch array — [{\"op\":\"replace\",\"path\":\"/status\",\"value\":null},{\"op\":\"remove\",\"path\":\"/tags\"}] — and my target document is {\"status\":\"active\",\"tags\":[\"a\",\"b\"],\"name\":\"Acme\"}. Using JSON Patch dialect, verify that after applying this patch 'status' will be null (not absent), 'tags' will be absent, and 'name' will be unchanged."},{"title":"Custom API semantics validation","prompt":"My API has unusual PATCH semantics: omitted means keep, null means clear, empty array means replace with empty, empty string means set literally. My payload is {\"notes\": \"\", \"items\": [], \"owner\": null} and I want 'notes' set to empty string, 'items' cleared, and 'owner' cleared. Can you check my payload against these caller-declared semantics?"}],"resultDescription":"A per-field breakdown of what each part of the PATCH body means under the declared dialect, whether each stated intent is satisfied or violated, and — when a target document is provided — the result of applying the patch with exact before/after comparisons. When an intent cannot be verified without a target document, the response says so explicitly.","failureModes":["Missing required 'dialect' field returns validation error","'callerSemantics' not provided when dialect is 'caller'","JSON Patch payload is not an array of operations as required by RFC 6902","Intent path references a field not present in payload or target, making verification ambiguous","More than 100 intents supplied exceeds the maxItems limit","Conflicting intents for the same path cannot be simultaneously satisfied"],"whenToPreferThis":"Use this endpoint when an AI agent is about to issue a PATCH or update request and needs to verify that the request body correctly expresses its intended field changes under a specific patch dialect. This is especially valuable when the patch dialect has non-obvious semantics (e.g. merge-patch's null-deletes behavior), when data loss from accidental field clearing would be costly, or when building reliable automation that must distinguish between 'leave unchanged', 'clear', and 'set to empty'. Prefer this over manual reasoning when the agent needs a definitive, structured answer about patch semantics rather than a probabilistic guess.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:41:04.566Z","isFirstParty":false,"canonicalSlug":"writerslogic-update-dialect-verifier-8ed9b8ec"}