{"uid":"cap_brzJk_NA4tRe-4vGnaIYZ","slug":"content-length-check-d685c369","name":"Content Length Check","description":"Content Length Check: Content Length Check compares declared Content-Length with an observed byte count from bounded caller-supplied values without an external provider. Call Content Length Check 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 Content Length Check as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memor…","url":"https://api.delx.ai/api/v1/x402/content-length-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"declared":{"type":"integer","description":"Declared supplied to Content Length Check; used only for this bounded calculation and processed in memory without retention."},"observed":{"type":"integer","description":"Observed supplied to Content Length Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"delta":0,"matched":true,"declared":128,"observed":128},"schema":"delx/util-content-length-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"c55f65a8b217d1823723eaaef27fb2baf48c4cfd7f20ccc0fecf75ec925d4da5","external_calls":0},"operation":"web_reliability:content_length_check"}},"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_5CAxkWov5sjS-WNgDlKXr","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 a declared Content-Length header value against an observed byte count and returns a deterministic pass/advisory verdict with normalized evidence.","exampleAgentPrompt":"Check whether the declared Content-Length of 2048 matches the observed byte count of 1984 — tell me if it passes or if there's a mismatch I should worry about.","exampleUseCases":[{"title":"Validate cached response before storing","prompt":"Before I cache this API response, check whether the declared Content-Length of 512 bytes matches the observed 512 bytes I counted — give me a clear pass or advisory result."},{"title":"Detect truncated download in agent pipeline","prompt":"I downloaded a file and my byte counter says 10240 but the server declared 10500 — can you run a content length check and tell me if the response was truncated?"},{"title":"Pre-retry mismatch detection for resilient agent","prompt":"Before I retry this failed request, check if the declared Content-Length of 300 and my observed count of 0 represent a real mismatch that warrants a retry."}],"resultDescription":"Returns versioned deterministic JSON containing: normalized web evidence (declared and observed values), the computed finding (difference and match status), and an explicit pass or advisory status indicating whether the declared Content-Length matches the observed byte count.","failureModes":["Missing or null declared/observed integers cause a validation error","Non-integer values for declared or observed fields are rejected","Negative byte counts may trigger an invalid-input error","Payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Use this endpoint when an AI agent needs a stateless, auditable, deterministic check that a Content-Length HTTP header matches the actual observed byte count before accepting, caching, redirecting, or retrying a web response. Prefer it over manual comparison when you need a versioned JSON record of the finding for audit trails or when operating in an agentic pipeline that requires explicit pass/advisory signals.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:52:06.057Z","isFirstParty":false}