{"serverId":"mcp-registry/com.writerslogic.agents/writerslogic-agent-infra","tools":[{"name":"acceptance-receipt","fixed":{"name":"acceptance-receipt","description":"Signed acceptance receipt: which deterministic tests a delivered output passed — Runs your deterministic acceptance tests (equals, exists, absent, type, contains, length and number ranges, one-of, sha256, a JSON Schema subset) against a sub-agent's or vendor's JSON output at JSON Pointer paths, and returns per-test results plus a hub-signed receipt over the output hash, the tests hash and the results. Use it before paying for delegated work or releasing the next step. It certi","inputSchema":{"type":"object","required":["output","tests"],"properties":{"label":{"type":"string","maxLength":200,"description":"Free text bound into the receipt, e.g. the task id."},"tests":{"type":"array","items":{"type":"object","required":["id","kind"],"properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,64}$"},"max":{"type":"number"},"min":{"type":"number"},"kind":{"enum":["equals","not-equals","exists","absent","type","contains","length-between","number-between","one-of","sha256","schema"],"type":"string"},"path":{"type":"string","maxLength":500,"description":"RFC 6901 JSON Pointer into output; empty or omitted = the whole output."},"value":{"description":"equals/not-equals/contains: the JSON value; type: a JSON type name; one-of: an array; sha256: lowercase hex; schema: a hub-subset JSON Schema."}},"additionalProperties":false},"maxItems":100,"minItems":1},"output":{"description":"The delivered JSON (at most 262144 bytes as JCS).","type":"string"}},"additionalProperties":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: output. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":424,"tokensAfter":429},{"name":"approval-invalidation","fixed":{"name":"approval-invalidation","description":"Does a change to the approved thing invalidate the approval under a materiality policy? — Compares what a human or system approved with what is about to be executed (a quote, order, plan, diff summary: any JSON) under a caller-supplied materiality policy: per-path rules exact / ignore / numeric tolerance (absolute or percent) / no-increase / no-decrease, with the longest matching path winning and a default for unlisted paths. Also covers quote revisions (approved revision number must e","inputSchema":{"type":"object","required":["approved","current"],"properties":{"asOf":{"type":"string","maxLength":40,"description":"RFC 3339 instant for the expiry check; no clock is read."},"policy":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","required":["path","rule"],"properties":{"abs":{"type":"number","maximum":1000000000000000,"minimum":0,"description":"numeric-tolerance: allowed absolute difference."},"pct":{"type":"number","maximum":1000,"minimum":0,"description":"numeric-tolerance: allowed difference as percent of the approved value. Either bound being met is enough."},"path":{"type":"string","maxLength":300,"description":"JSON Pointer prefix; \"*\" matches one token."},"rule":{"enum":["exact","ignore","numeric-tolerance","no-increase","no-decrease"],"type":"string"}},"additionalProperties":false},"maxItems":100},"default":{"enum":["material","ignore"],"type":"string","description":"Rule for paths no field rule covers. Default material (any change invalidates)."}},"additionalProperties":false},"current":{"description":"The version about to be executed (JSON).","type":"string"},"approved":{"description":"The approved snapshot (JSON).","type":"string"},"approvedAt":{"type":"string","maxLength":40,"description":"RFC 3339 instant."},"currentRevision":{"type":"integer","maximum":1000000000,"minimum":0},"validForSeconds":{"type":"integer","maximum":315360000,"minimum":0},"approvedRevision":{"type":"integer","maximum":1000000000,"minimum":0},"requireSameRevision":{"type":"boolean","description":"Default true when either revision is given (a missing partner gives unknown): an approval for another revision does not cover this one. Send false to ignore the revisions."}},"additionalProperties":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: current, approved. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":632,"tokensAfter":641},{"name":"cache-key-check","fixed":{"name":"cache-key-check","description":"Check that a result-cache key contains every input that changes the result, and nothing volatile — Given the inputs of a cached computation (each declared as influencing the output or not, optionally volatile) and the list of inputs the cache key is built from, finds influential inputs missing from the key (stale or wrong hits), volatile inputs inside it (the cache never hits), unknown-influence inputs left out, and, for private results, a missing tenant dimension (cross-tenant leak). When valu","inputSchema":{"type":"object","required":["inputs","keyParts"],"properties":{"scope":{"type":"string","maxLength":200,"description":"Namespace mixed into the digest."},"inputs":{"type":"array","items":{"type":"object","required":["name","influencesOutput"],"properties":{"name":{"type":"string","maxLength":200,"minLength":1},"value":{"description":"Optional value, used only to compute the key digest."},"volatile":{"type":"boolean","description":"Changes on every call (timestamp, request id, nonce)."},"influencesOutput":{"enum":["yes","no","unknown"],"type":"string"}},"additionalProperties":false},"maxItems":100,"minItems":1},"private":{"type":"boolean","description":"The result is per-tenant or per-user."},"keyParts":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":100,"description":"Names of the inputs the key is built from."},"tenantInput":{"type":"string","maxLength":200,"minLength":1,"description":"Name of the input that identifies the tenant or user; required in the key when private."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":449,"tokensAfter":449},{"name":"cross-reference-check","fixed":{"name":"cross-reference-check","description":"Find dangling and duplicated cross-references (Section 3.2, Table 4, Figure 2, [7]) in a document — Scans a document for the targets it defines (numbered headings, Table/Figure/Listing/Equation captions at line start, Appendix/Annex headings, [n] bibliography entries, [^id] footnote definitions) and the references it makes to them ('see Section 3.2', 'Tables 2 and 4', 'Figures 3 to 5', '[7]', '[^note]'), and reports references with no target, targets defined twice, and targets never referenced, ","inputSchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":150000,"minLength":1,"description":"Document text (plain text or Markdown)."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":211,"tokensAfter":211},{"name":"deictic-check","fixed":{"name":"deictic-check","description":"Find unresolved references (that one, the former, tomorrow, next week) and return clarification questions — Scans a user or tool message for phrases that cannot be understood without context: demonstratives ('that one', 'the latter'), back-references ('as before', 'the usual'), and relative dates or times ('tomorrow', 'next Friday', 'end of month', 'soon'), each with offsets and a clarification question. Given a caller anchor (asOf instant plus IANA time zone) it resolves only unambiguous day of","inputSchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":20000,"minLength":1,"description":"Message to check."},"anchor":{"type":"object","required":["asOf","timeZone"],"properties":{"asOf":{"type":"string","maxLength":40,"description":"ISO 8601 instant with Z/offset, or a plain YYYY-MM-DD local date."},"timeZone":{"type":"string","maxLength":64,"minLength":1,"description":"IANA zone, e.g. Europe/Berlin."}},"description":"Reference time for resolving unambiguous relative dates.","additionalProperties":false},"candidates":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":20,"description":"Items recently in play; echoed on reference slots for the caller to ask with. Never chosen automatically."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":372,"tokensAfter":372},{"name":"delegation-contract-check","fixed":{"name":"delegation-contract-check","description":"Check that a sub-agent delegation states objective, acceptance criteria, budget, evidence and stop conditions — Checks the brief an agent is about to hand to another agent: the required parts are present and non-empty (objective, acceptance criteria, a budget with at least one positive numeric bound, required evidence, stop conditions; output format if required), nothing is duplicated, and acceptance criteria are not made only of vague wording (a small labelled word list: good, appropriate, if p","inputSchema":{"type":"object","required":[],"properties":{"budget":{"type":"object","properties":{"maxUsd":{"type":"number","maximum":1000000,"minimum":0},"maxTokens":{"type":"integer","maximum":10000000000,"minimum":0},"maxSeconds":{"type":"integer","maximum":31536000,"minimum":0},"maxToolCalls":{"type":"integer","maximum":10000000,"minimum":0}},"additionalProperties":false},"require":{"type":"array","items":{"enum":["objective","acceptanceCriteria","budget","evidenceRequired","stopConditions","outputFormat"],"type":"string"},"maxItems":6,"minItems":1,"description":"Parts that must be present. Default: objective, acceptanceCriteria, budget, evidenceRequired, stopConditions."},"objective":{"type":"string","maxLength":2000},"outputFormat":{"type":"string","maxLength":2000},"stopConditions":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":30,"description":"When the delegate must stop and report (done, blocked, budget spent)."},"evidenceRequired":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":30,"description":"What the delegate must return as proof (links, test output, file paths)."},"acceptanceCriteria":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":30}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":507,"tokensAfter":507},{"name":"doi-check","fixed":{"name":"doi-check","description":"DOI check: exists, retracted, or fabricated (batch of 20) — Checks up to 20 DOIs in one call against Crossref (including its Retraction Watch notices), OpenAlex and the doi.org Handle registry. Per DOI: FOUND with title and year, RETRACTED, EXPRESSION_OF_CONCERN, CORRECTED, REGISTERED_NOT_INDEXED, NOT_REGISTERED (no such DOI anywhere: likely fabricated), INVALID_DOI or UNVERIFIED. For research agents and RAG pipelines that cite papers: run every DOI throug","inputSchema":{"type":"object","required":["dois"],"properties":{"dois":{"type":"array","items":{"type":"string","maxLength":300,"minLength":1},"maxItems":20,"minItems":1,"description":"Bare DOIs, doi: prefixes or https://doi.org/ URLs."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":214,"tokensAfter":214},{"name":"edit-anchor-check","fixed":{"name":"edit-anchor-check","description":"Check that an edit's old-string occurs exactly once in a file, with match contexts — Counts how many times an old-string occurs in a supplied file text (as a replace-in-file tool would see it) and returns each match's offset, line, column and surrounding lines, for an agent about to issue an edit. pass: exactly one literal match, even counting overlapping ones. unknown: several matches, or one match that overlaps another occurrence of the same text (ambiguous; contexts show how to","inputSchema":{"type":"object","required":["file","oldString"],"properties":{"file":{"type":"string","maxLength":524288,"description":"File text, at most 524288 UTF-8 bytes and 100000 lines."},"oldString":{"type":"string","maxLength":65536,"minLength":1},"contextLines":{"type":"integer","maximum":10,"minimum":0,"description":"Lines of context before and after each listed match. Default 2."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":266,"tokensAfter":266},{"name":"evidence-bundle-check","fixed":{"name":"evidence-bundle-check","description":"Check that every claim in an evidence bundle has enough independent, fresh, quote-verified support — Checks a bundle an agent assembled before answering: each claim must be backed by at least N evidence items from distinct source groups, each item's quote must actually appear in the supplied text (with offsets), publication dates must be within the caller's maximum age relative to a caller-supplied asOf, and duplicates are collapsed. Does not fetch URLs or judge whether a source is reliable or w","inputSchema":{"type":"object","required":["claims","evidence"],"properties":{"asOf":{"type":"string","maxLength":40,"description":"Reference instant (ISO 8601) for age checks; required with maxAgeDays. The check never reads the clock."},"claims":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"description":"Unique id."},"text":{"type":"string","maxLength":2000},"minEvidence":{"type":"integer","maximum":20,"minimum":1,"description":"Distinct source groups needed. Default 1."}},"additionalProperties":false},"maxItems":100,"minItems":1,"description":"Claims to support."},"evidence":{"type":"array","items":{"type":"object","required":["id","claimIds"],"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"description":"Unique id."},"url":{"type":"string","maxLength":2000},"text":{"type":"string","maxLength":50000,"description":"Source text the quote should appear in."},"quote":{"type":"string","maxLength":2000,"description":"Verbatim excerpt claimed from text."},"claimIds":{"type":"array","items":{"type":"string","maxLength":100},"maxItems":50,"description":"Claims this item is offered for."},"publishedAt":{"type":"string","maxLength":40,"description":"ISO 8601 date or date-time."},"sourceGroup":{"type":"string","maxLength":200,"description":"Independent-source key (publisher/owner). Overrides the host reduction."}},"additionalProperties":false},"maxItems":300,"description":"Up to 300 items; 300000 characters of text in total."},"maxAgeDays":{"type":"integer","maximum":36500,"minimum":0,"description":"Evidence published longer ago than this (relative to asOf) is stale."},"requireQuotes":{"type":"boolean","description":"Evidence without a verifiable quote does not count as support. Default true."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":665,"tokensAfter":665},{"name":"inbox-create","fixed":{"name":"inbox-create","description":"Receive-only inbox for agents without a public endpoint — Creates a receive-only inbox for an AI agent that has no public endpoint: a webhook URL that accepts POST or PUT, and (when the operator has configured inbound email) a unique email address. Pair with inbox-poll to read what arrived. It never sends email or calls out, does not store attachments, does not verify senders (no SPF/DKIM), and message content is untrusted third-party data. Inboxes live ","inputSchema":{"type":"object","properties":{"label":{"type":"string","maxLength":64,"description":"Optional name for your own bookkeeping."},"tenantId":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"Required for API-key callers (namespace as key:<tenantId>; keep it unguessable). Ignored when a wallet paid."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":239,"tokensAfter":239},{"name":"mutation-intent","fixed":{"name":"mutation-intent","description":"Diff a before/after JSON write for deletes, null-vs-omit and emptied arrays against protected paths — Compares the JSON document an agent read (before) with the one it is about to write (after) and lists every change by JSON Pointer: removed members, null turned into omitted (and the reverse), arrays emptied or shrunk, objects emptied, type changes. Fails when a change touches a protected path or is destructive and not listed in allowDestructive; use it before a PUT, PATCH or bulk update. Arrays","inputSchema":{"type":"object","required":["before","after"],"properties":{"after":{"description":"JSON value about to be written.","type":"string"},"before":{"description":"JSON value as last read.","type":"string"},"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."}},"additionalProperties":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: after, before. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":324,"tokensAfter":333},{"name":"patch-anchor","fixed":{"name":"patch-anchor","description":"Apply a unified-diff hunk or search/replace edit to a file by content, refusing ambiguity — Applies unified-diff hunks (wrong line numbers are fine) or search/replace blocks to a supplied file text and returns the patched text, for an agent whose edit tool failed or whose diff has drifted line numbers. Each hunk is located by its content against the original file, trying exact, trailing-whitespace, outer-whitespace then collapsed-whitespace matching; the rung used is reported per hunk. I","inputSchema":{"type":"object","required":["file"],"properties":{"diff":{"type":"string","maxLength":262144,"description":"Single-file unified diff, at most 64 hunks and 400 anchor lines each. Header counts and line numbers are ignored except as a reported hint. Give either diff or edits."},"file":{"type":"string","maxLength":524288,"description":"Current file text, at most 524288 UTF-8 bytes and 100000 lines. A leading BOM is preserved."},"edits":{"type":"array","items":{"type":"object","required":["search","replace"],"properties":{"line":{"type":"integer","maximum":1000000,"minimum":1,"description":"Optional line hint, reported as lineShift and never used to break ties."},"search":{"type":"string","maxLength":65536},"replace":{"type":"string","maxLength":65536,"description":"Empty string deletes the matched lines."}},"additionalProperties":false},"maxItems":64,"minItems":1,"description":"Search/replace blocks, matched as whole lines against the original file; all are located before any is applied."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":439,"tokensAfter":439},{"name":"policy-gate","fixed":{"name":"policy-gate","description":"Policy gate with a signed receipt: your JsonLogic rules vs a proposed tool call or payment — Evaluates your own policy (JsonLogic rules, each allow or deny, deny-overrides or first-match, default deny) against a proposed tool call, payment or action, and returns allow or deny, the rule id that decided, and a receipt signed by the hub over the hashes of the policy, the request and the decision. The receipt is the product: another agent or an auditor can verify offline which rule allowed th","inputSchema":{"type":"object","required":["policy","request"],"properties":{"policy":{"description":"JsonLogic: { rules: [{ id, effect: allow|deny, when: <JsonLogic>, description? }] (at most 100), combining?: deny-overrides|first-match, defaultEffect?: deny|allow }. A string for cedar/rego.","type":"string"},"request":{"description":"The proposed action as JSON (at most 65536 bytes), e.g. { tool, args, amountUsd, payee }. Rules read it with { \"var\": \"args.amountUsd\" }.","type":"string"},"language":{"enum":["jsonlogic","cedar","rego"],"type":"string","description":"Default jsonlogic. cedar and rego return unsupported."}},"additionalProperties":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: policy, request. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":324,"tokensAfter":333},{"name":"quota-reservation-check","fixed":{"name":"quota-reservation-check","description":"Would this request fit in the remaining quota, given a snapshot and pending reservations? (snapshot-bound) — Computes available quota from a caller-supplied snapshot (limit, used, reserved) minus the unexpired pending reservations and says whether a requested amount fits. This is a read of the numbers you supply as of snapshotAt: it reserves nothing, so concurrent consumers can still use the quota before you do, and every response says so. A stale snapshot gives unknown, not pass; a window that ","inputSchema":{"type":"object","required":["quota","request","snapshotAt","asOf"],"properties":{"asOf":{"type":"string","maxLength":40,"description":"RFC 3339 instant of the decision (no clock is read)."},"quota":{"type":"object","required":["limit","used"],"properties":{"used":{"type":"integer","maximum":9007199254740991,"minimum":0},"limit":{"type":"integer","maximum":9007199254740991,"minimum":0},"reserved":{"type":"integer","maximum":9007199254740991,"minimum":0,"description":"Amount already reserved and counted outside `pending`."},"windowEndsAt":{"type":"string","maxLength":40,"description":"RFC 3339 end of the quota window the snapshot belongs to."}},"additionalProperties":false},"pending":{"type":"array","items":{"type":"object","required":["id","amount"],"properties":{"id":{"type":"string","maxLength":200,"minLength":1},"amount":{"type":"integer","maximum":9007199254740991,"minimum":0},"expiresAt":{"type":"string","maxLength":40,"description":"RFC 3339; a reservation expiring at or before asOf no longer holds quota. Omit for a hold that does not expire."}},"additionalProperties":false},"maxItems":200},"request":{"type":"object","required":["amount"],"properties":{"amount":{"type":"integer","maximum":9007199254740991,"minimum":0}},"additionalProperties":false},"snapshotAt":{"type":"string","maxLength":40,"description":"RFC 3339 instant the quota numbers were read."},"maxSnapshotAgeSeconds":{"type":"integer","maximum":31536000,"minimum":0}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":571,"tokensAfter":571},{"name":"result-cache","fixed":{"name":"result-cache","description":"Content-addressed result cache shared by your agents (short TTL) — Caches a result under the SHA-256 of the canonical (JCS) request, so every agent in your fleet that makes the same request reuses one answer for up to an hour. get returns hit with the value and age, or a miss (status unknown). Scoped to your wallet or tenantId, never shared across customers, so nobody else can poison your cache.","inputSchema":{"type":"object","required":["op","request"],"properties":{"op":{"enum":["get","put"],"type":"string"},"value":{"description":"put: the JSON result, at most 16384 bytes serialized.","type":"string"},"request":{"description":"Any JSON identifying the computation; it is canonicalized (RFC 8785) and hashed.","type":"string"},"tenantId":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$","description":"Required for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant."},"namespace":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,64}$","description":"Default: default."},"ttlSeconds":{"type":"integer","maximum":3600,"minimum":1,"description":"put: default 300."}},"additionalProperties":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: value, request. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":331,"tokensAfter":340},{"name":"unicode-check","fixed":{"name":"unicode-check","description":"Unicode smuggling check for strings (prompts, tool args, URLs) — Checks up to 100 strings in one call against the 19 deterministic rules of unicode-safety-check: bidi controls (Trojan Source), invisible and zero-width characters, tag-character and variation-selector payloads, homoglyph and mixed-script hosts or names. Built for an agent's hot path: run it on a prompt, a tool argument, a URL or a model output before acting on it. Returns BLOCK / REVIEW / NO_FIND","inputSchema":{"type":"object","required":["strings"],"properties":{"kind":{"enum":["text","identifier","url"],"type":"string","description":"text (default): prose, only critical findings block. identifier or url: high findings such as mixed-script names also block."},"strings":{"type":"array","items":{"type":"string","maxLength":10000},"maxItems":100,"minItems":1,"description":"Up to 200000 characters in total."}},"additionalProperties":false},"annotations":{"readOnlyHint":true}},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":266,"tokensAfter":266},{"name":"update-dialect","fixed":{"name":"update-dialect","description":"What do omitted, null, [] and \"\" mean in this PATCH body under merge-patch, JSON Patch or a declared dialect? — For an agent about to send a PATCH or update body: states, per field, what omitted / null / [] / \"\" mean under the declared dialect (RFC 7396 merge patch, RFC 6902 JSON Patch, or caller-declared semantics) and checks the body against stated intents such as 'clear this field', 'leave this alone' or 'set to empty array'. With a target document it applies the patch and compares the result","inputSchema":{"type":"object","required":["dialect","payload"],"properties":{"target":{"description":"Current document, if available. Enables applying the patch and exact checks.","type":"string"},"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.","type":"string"},"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}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: target, payload. Change to number/boolean/array where that's what you accept.","verify":true},{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":524,"tokensAfter":532}],"toolsChanged":17,"tokensSaved":0,"todo":[{"tool":"acceptance-receipt","params":["tests"]},{"tool":"approval-invalidation","params":["policy","currentRevision","validForSeconds","approvedRevision"]},{"tool":"artifact-invalidator","params":["changed","artifacts"]},{"tool":"assumption-conflict","params":["assumptions"]},{"tool":"cache-key-check","params":["inputs"]},{"tool":"compensation-coverage","params":["steps"]},{"tool":"deadline-feasibility","params":["steps"]},{"tool":"dedup-window","params":["history","incoming","windowSeconds"]},{"tool":"delegation-contract-check","params":["budget","objective","outputFormat","acceptanceCriteria"]},{"tool":"dom-recipe-match","params":["recipe"]},{"tool":"edit-anchor-check","params":["oldString"]},{"tool":"fleet-memory","params":["op","namespace","observations"]},{"tool":"footnote-attach","params":["notes","markers"]},{"tool":"http-outcome","params":["method","status","idempotencyKey"]},{"tool":"id-block","params":["op"]},{"tool":"idempotency-fingerprint","params":["requests"]},{"tool":"idempotency-registry","params":["op"]},{"tool":"inbox-poll","params":["inbox_id"]},{"tool":"lease","params":["op"]},{"tool":"micro-batch","params":["calls"]},{"tool":"pagination-loop","params":["pages","declared"]},{"tool":"permission-intersection","params":["implies"]},{"tool":"quota-reservation-check","params":["quota","pending","request","maxSnapshotAgeSeconds"]},{"tool":"result-cache","params":["op"]},{"tool":"retry-admissibility","params":["actor","policy","previousAttemptWasAutomaticRetry"]},{"tool":"spend-ledger","params":["op","reservationId"]},{"tool":"test-exit-interpret","params":["flags","runner"]},{"tool":"token-bucket","params":["op"]},{"tool":"transcript-validator","params":["messages","provider"]},{"tool":"update-dialect","params":["intents"]},{"tool":"warm-memory","params":["op","said","facts","limit","query"]},{"tool":"workflow-transition","params":["facts","current","transitions"]}],"note":"Deterministic fixes. Changes marked verify need a human look before shipping (renames, inferred annotations, inferred types, removed text). Parameter descriptions in `todo` need to be written by someone who knows the API."}