{"uid":"cap_ADwLegxjmVX7jQQ-1HtkW","slug":"delx-payload-size-check-02589300","name":"Delx Payload Size Check","description":"Measure payload byte size against soft and hard ceilings before paying — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that…","url":"https://api.delx.ai/api/v1/x402/payload-size-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payload":{"type":"object","description":"Input field: payload."},"hard_limit_bytes":{"type":"integer","description":"Input field: hard limit bytes."},"soft_limit_bytes":{"type":"integer","description":"Input field: soft limit bytes."}}},"responseSchema":{"type":"json","example":{"bytes":17,"chars":17,"schema":"delx/util-payload-size-check/v1","status":"ok","within_hard":true,"within_soft":true,"hard_limit_bytes":65536,"soft_limit_bytes":8192,"recommend_truncate":false}},"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_Jbu0Brir9rMxtm4m1ztZe","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":"Measures the byte size of a payload against configurable soft and hard ceiling limits, returning a deterministic pass/warn/fail result before a paid operation is attempted.","exampleAgentPrompt":"Before I send this request, check if the payload is within size limits — soft ceiling 10000 bytes, hard ceiling 20000 bytes — and tell me whether it passes, warns, or fails.","exampleUseCases":[{"title":"Preflight check before paid API call","prompt":"Before dispatching this JSON payload to the inference API, run a size check against a soft limit of 8000 bytes and a hard limit of 16000 bytes so I know if it'll be rejected."},{"title":"Warn on oversized agent memory context","prompt":"My agent's memory context object is getting large — check its byte size against a 12000-byte soft limit and 24000-byte hard limit and tell me if I need to trim it."},{"title":"Validate webhook payload before forwarding","prompt":"I'm about to forward this webhook payload to a downstream service — can you measure its byte size and flag it if it exceeds 5000 bytes soft or 10000 bytes hard limit?"}],"resultDescription":"Returns deterministic machine-readable JSON indicating the exact byte size of the provided payload, whether it breaches the soft limit (advisory warning), and whether it breaches the hard limit (hard failure signal). All results are advisory; no state is stored and no upstream calls are made.","failureModes":["Missing payload field returns validation error","Non-integer limit values cause schema rejection","Extremely nested objects may produce unexpected byte counts depending on serialization","Soft limit greater than hard limit may return ambiguous results","Empty payload may return zero-byte result without error"],"whenToPreferThis":"Choose this endpoint when you need a stateless, deterministic, sub-cent preflight check on payload byte size before committing to a downstream operation — especially before making paid API calls, sending large messages, or dispatching agent context. Prefer it over client-side size estimates when you want a guaranteed machine-readable pass/warn/fail verdict that can be logged or acted upon programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:05.922Z","isFirstParty":false}