{"uid":"cap_0NxI_eCnMqSFbYBFG-mNB","slug":"delx-list-len-safe-dd42bef3","name":"Delx List Len Safe","description":"Safe length of a list/JSON array. Call when you measure agent arrays before batching. Returns length integer for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/list-len-safe?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"length":3,"schema":"delx/util-list-len-safe/v1"}},"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_8-jjdEl8sepV6ur8ANmyY","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":"Returns the safe integer length of a JSON array without any network calls or external dependencies.","exampleAgentPrompt":"Before I start batching these results, can you safely count how many items are in this array: [\"apple\", \"banana\", \"cherry\", \"date\"]?","exampleUseCases":[{"title":"Pre-batch array size check","prompt":"I have a list of user records I need to batch-process — can you tell me how many items are in this array before I split it into chunks: [{\"id\":1},{\"id\":2},{\"id\":3},{\"id\":4},{\"id\":5}]?"},{"title":"Agent pipeline item count","prompt":"Before my agent sends these tasks to the queue, can you safely measure how many items are in this list: [\"task_a\",\"task_b\",\"task_c\"]?"},{"title":"Validate non-empty results list","prompt":"I got back a list of search results and need to know if it has any items before continuing — can you count how many are in this array: [\"result1\",\"result2\"]?"}],"resultDescription":"An integer representing the number of elements in the provided JSON array, computed locally without external network calls or data retention.","failureModes":["Input is not a valid JSON array — returns an error or zero","Field 'items' is missing from request body — likely returns an error","Empty array provided — returns 0 (valid but agents should handle this case)","Non-array value passed in items field — may return error or unexpected result"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-side-effect array length check within an agentic pipeline — especially before batching, chunking, or quota checks. Prefer it over custom code when operating in environments without local execution, or when you want a paid, auditable micro-utility via x402 on Base. It is not appropriate for deep array inspection, nested counting, or recursive structures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:54:02.542Z","isFirstParty":false,"canonicalSlug":"delx-list-len-safe-dd42bef3"}