{"uid":"cap_e_QnEI5FNca3vOaQ8DltR","slug":"delx-list-len-3b98bd52","name":"Delx List Len","description":"Return length of a JSON array or separator-split string list — 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 already co…","url":"https://api.delx.ai/api/v1/x402/list-len","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"ok":true,"empty":false,"length":3,"sample":["a","b","c"],"schema":"delx/util-list-len/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_EbmMCmZrTW_Giwmys7eok","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 length of a JSON array or a separator-delimited string list as a deterministic integer","exampleAgentPrompt":"How many items are in this array: [\"apple\", \"banana\", \"cherry\", \"date\"]? Just give me the count.","exampleUseCases":[{"title":"Preflight array size check","prompt":"Before I process this batch, can you tell me how many items are in this list: [\"task1\", \"task2\", \"task3\", \"task4\", \"task5\"]? I need to know if it's within my budget limit."},{"title":"Validate pipeline input length","prompt":"I have a JSON array of user IDs coming into my pipeline — can you count how many there are so I can decide whether to chunk it?"},{"title":"Count CSV-style string entries","prompt":"I have a comma-separated string of tags and I need to know how many tags there are before storing them — can you count the items in it?"}],"resultDescription":"Returns a deterministic JSON object containing the integer count of elements in the provided array or separator-split string. The response is machine-readable, stateless, and advisory — no data is retained after the call.","failureModes":["Invalid or missing 'items' field returns an error response","Non-array input that cannot be parsed as a list may return an error","Malformed JSON in the request body results in a 400-level error","Payment not included or insufficient USDC triggers x402 payment-required response"],"whenToPreferThis":"Use this endpoint when an agent needs a quick, deterministic count of array or list elements as a lightweight preflight step — especially when avoiding shipping extra code, when operating in a cost-sensitive micro-task context at $0.001 USDC, or when chaining with other Delx utility routes. Prefer over custom code when keeping the agent runtime lean and stateless.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:14.532Z","isFirstParty":false}