{"uid":"cap_l4T_MaChKWKRr18Hxe5Wq","slug":"json-array-length-check-15bd74ce","name":"JSON Array Length Check","description":"JSON Array Length Check: JSON Array Length Check checks selected array fields against caller item-count bounds from bounded caller-supplied values without an external provider. Call JSON Array Length Check before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Array Length Check as versioned deterministic JSON. Price: $0.…","url":"https://api.delx.ai/api/v1/x402/json-array-length-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Fields supplied to JSON Array Length Check; used only for this bounded calculation and processed in memory without retention."},"object":{"type":"object","description":"Object supplied to JSON Array Length Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"maximum":{"type":"integer","description":"Maximum supplied to JSON Array Length Check; used only for this bounded calculation and processed in memory without retention."},"minimum":{"type":"integer","description":"Minimum supplied to JSON Array Length Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"passed":true,"invalid_fields":[]},"schema":"delx/util-json-array-length-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"95a21205d9c6d659623a8ea762303c79e2d75f8c4ff1455041af6261652db58d","external_calls":0},"operation":"data_batch:json_array_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_sp-GQGEVxD8x7E4c3tAqv","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":"Validates that specified array fields within a JSON object have lengths within caller-supplied minimum and maximum bounds, returning counts and normalized values.","exampleAgentPrompt":"Before sending this payload to the downstream tool, check that the 'items' and 'tags' arrays are both between 1 and 50 entries — here's the object: {\"items\":[...],\"tags\":[...]}.","exampleUseCases":[{"title":"Pre-flight batch size guard","prompt":"Before I send this job plan to the fulfillment API, check that the 'orders' array in this object has between 1 and 100 entries so we don't blow past the downstream limit."},{"title":"Agent output completeness validation","prompt":"My agent just returned a result with a 'recommendations' field — can you verify that array has at least 3 items and no more than 20 before we forward it to the user?"},{"title":"Schema contract enforcement for structured pipeline","prompt":"Check the 'recipients' and 'attachments' array fields in this JSON object to make sure each has a minimum of 1 and a maximum of 10 items — reject it if either is out of bounds."}],"resultDescription":"Returns a versioned deterministic JSON object containing: per-field array length counts, a pass/fail validation finding indicating whether each field is within the specified minimum and maximum bounds, normalized values, and a versioned result contract identifier.","failureModes":["Field names in 'fields' array do not exist in the provided object — returns counts of 0 or field-not-found findings","Provided 'minimum' exceeds 'maximum' — may return an error or vacuous failure","Non-array field specified — returns a type mismatch or zero-count finding","Object exceeds 128 properties limit — request rejected","Fields array exceeds 256 items — request rejected","Missing required 'object' or 'fields' input — returns validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to enforce item-count contracts on array fields in a JSON object before passing structured data to a downstream tool or API with stricter requirements. It is ideal for pre-flight checks in agentic pipelines where batch sizes, list lengths, or array cardinality must be bounded. Prefer this over ad-hoc code execution when you need a deterministic, versioned, auditable validation result without retaining data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:55:54.167Z","isFirstParty":false,"canonicalSlug":"json-array-length-check-15bd74ce"}