{"uid":"cap_Yyc9vFwptaW3zjifgeZTX","slug":"one-engine-json-array-head-utility-tier-3-c1a3dd39","name":"ONE Engine JSON Array Head Utility (Tier 3)","description":"Deterministic JSON array processing utility: Return first array items; parameter=1. Tier 3/10 provides progressively richer diagnostics.","url":"https://one-search.one-engine.workers.dev/v8/array-process/head/p1/t3?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0008","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.0008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ba4IZwEKtMsVAykzh32qn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the first N items from a JSON array with Tier 3 progressive diagnostics, deterministically processing the input array and returning its head elements.","exampleAgentPrompt":"Take this JSON array and give me just the first item from it, using the ONE Engine head utility with Tier 3 diagnostics: [42, 'hello', true, 99].","exampleUseCases":[{"title":"Peek at first pipeline result","prompt":"I have this JSON array of results from a data pipeline — [{'id':1,'score':0.98},{'id':2,'score':0.75},{'id':3,'score':0.61}] — can you pull out just the first item using the head utility so I can inspect the top result?"},{"title":"Extract leading queue entry","prompt":"Here's my task queue as a JSON array: ['send_email','run_report','archive_logs','cleanup_tmp']. Grab the first entry so I know what to process next."},{"title":"Sample front of dataset","prompt":"I've got a JSON array of sensor readings and I only need the first one to check the format before processing the rest: [{'ts':1700000001,'val':23.4},{'ts':1700000002,'val':23.7}]. Can you return just that first element with diagnostics?"}],"resultDescription":"Returns a JSON object containing the first item (or first N items, where N=1 by default) extracted from the submitted array, along with Tier 3 progressive diagnostics such as processing metadata, input array length, and result confirmation details.","failureModes":["Empty array input returns no items or an error","Non-array JSON body causes a parse or type error","Malformed JSON payload results in a 400 bad request","Payment not attached or insufficient USDC causes a 402 response","Network timeout on the Workers.dev edge"],"whenToPreferThis":"Choose this endpoint when you need a cheap, deterministic, pay-per-call way to extract the first element(s) from a JSON array within an agent workflow, especially when you want Tier 3 diagnostic output for debugging or auditing. Prefer it over custom code when operating in an x402-compatible agent pipeline on Base that needs verifiable, consistent array head operations without managing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:39:36.662Z","isFirstParty":false,"canonicalSlug":"one-engine-json-array-head-utility-tier-3-c1a3dd39"}