{"uid":"cap_AtNeqOJDWcTlZBIBdA4yN","slug":"etag-comparison-mode-757a91c9","name":"Etag Comparison Mode","description":"Etag Comparison Mode: Etag Comparison Mode evaluates strong or weak comparison between two entity tags from bounded caller-supplied values without an external provider. Call Etag Comparison Mode before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Etag Comparison Mode as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory…","url":"https://api.delx.ai/api/v1/x402/etag-comparison-mode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"left":{"type":"string","maxLength":8192,"description":"Left supplied to Etag Comparison Mode; used only for this bounded calculation and processed in memory without retention."},"weak":{"type":"boolean","description":"Weak supplied to Etag Comparison Mode; used only for this bounded calculation and processed in memory without retention."},"right":{"type":"string","maxLength":8192,"description":"Right supplied to Etag Comparison Mode; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"matched":true,"left_weak":false,"comparison":"weak","right_weak":true},"schema":"delx/util-etag-comparison-mode/v1","status":"pass","evidence":{"retained":false,"input_sha256":"43d7a0184e6bebe0515b0b8fc44fcb3a02fe3b3f6fd7bd1f08d1d525deeda0a5","external_calls":0},"operation":"web_reliability:etag_comparison_mode"}},"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_109Mc1pSNstrdN4JeeWGK","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":"Compares two HTTP ETags using strong or weak comparison rules and returns a deterministic pass/advisory result with normalized web evidence.","exampleAgentPrompt":"Can you do a weak ETag comparison between '\"abc123\"' and 'W/\"abc123\"' and tell me if they match?","exampleUseCases":[{"title":"Validate cache before serving stale content","prompt":"I have two ETags from my CDN layer — left is '\"v2-abc\"' and right is '\"v2-abc\"'. Can you do a strong ETag comparison and tell me if these match so I know whether to serve cached content or re-fetch?"},{"title":"Conditional GET redirect decision","prompt":"Before I issue a redirect, I need to know if the ETag '\"etag-abc\"' from the incoming request weakly matches the stored ETag 'W/\"etag-abc\"' on the server — can you run a weak comparison and give me a pass or advisory?"},{"title":"Retry logic based on resource versioning","prompt":"I'm deciding whether to retry a request — the original ETag was '\"rev-99\"' and the new one is '\"rev-100\"'. Run a strong ETag comparison so I can see if the resource actually changed."}],"resultDescription":"Returns a versioned deterministic JSON object containing the normalized representation of both input ETags, the computed comparison finding (match or no-match), and an explicit pass or advisory status indicating whether the ETags are considered equivalent under the requested comparison mode.","failureModes":["Malformed ETag strings (e.g. missing quotes) may result in a validation error or advisory status","ETags exceeding 8192 characters will be rejected by schema limits","Invalid or missing required fields return an error response","Ambiguous ETag formats may produce advisory rather than pass status"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, standards-compliant ETag comparison without implementing RFC 7232 comparison logic yourself. Particularly useful in agent workflows that must decide whether to accept, cache, redirect, or retry a web response based on ETag equivalence. Prefer this over ad-hoc string comparison when strong vs weak ETag semantics matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:07:27.817Z","isFirstParty":false}