{"uid":"cap_gUaaeCrABUEJl-p3657u-","slug":"creator-desk-array-length-utility-0f76650f","name":"Creator Desk Array Length Utility","description":"Machine-callable x402-paid utilities for autonomous agents.","url":"https://creator-desk-x402-isolated.onrender.com/v1/utility/array-length?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"options":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"example","operation":"array_length"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GIirxNkHyd3eSbb1IgPg2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the length (element count) of an input array value via a micropayment-gated API call.","exampleAgentPrompt":"How many elements are in this array: [10, 42, 7, 88, 3]? Use the array-length utility to count them.","exampleUseCases":[{"title":"Validate batch size before processing","prompt":"Before I send this array of user IDs to the batch processor, can you count how many elements it has? Here's the array: [101, 202, 303, 404, 505, 606]."},{"title":"Check list length in agent pipeline","prompt":"I need to know if my task queue array has more than 10 items in it — can you count the elements in this array for me: ['task_a', 'task_b', 'task_c', 'task_d', 'task_e']?"},{"title":"Measure dataset row count programmatically","prompt":"Can you compute the length of this dataset array so I know how many records I'm working with: [{'id':1},{'id':2},{'id':3},{'id':4}]?"}],"resultDescription":"A JSON response containing the computed array length as 'result' and the operation name 'array_length', confirming what was calculated.","failureModes":["Non-array input provided — may return an error or unexpected result if value is not an array","Missing or malformed value field — request may fail or return null result","Payment not completed — x402 micropayment required before processing; unpaid requests are rejected","Server cold start on Render free tier — may experience initial latency or timeout"],"whenToPreferThis":"Use this endpoint when you need a simple, programmatic, micropayment-gated utility to count array elements inside an autonomous agent pipeline, especially when you need a reliable JSON response with an explicit operation label confirming what was computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:46:22.332Z","isFirstParty":false,"canonicalSlug":"creator-desk-array-length-utility-0f76650f"}