{"uid":"cap_-B5KhdbdWowp0SYwlTEwz","slug":"one-engine-array-last-d376fd35","name":"ONE Engine Array Last","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/last?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array"}}},"responseSchema":{"type":"json","example":{"found":true,"value":"c"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0009","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.0009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JmSU_YlereUI74JA4Hhve","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the last element of an array, indicating whether a value was found.","exampleAgentPrompt":"What's the last element in this array: [\"a\", \"b\", \"c\"]?","exampleUseCases":[{"title":"Last log entry retrieval","prompt":"I have a list of log entries [\"boot\", \"login\", \"error\", \"shutdown\"] — can you get me the very last one?"},{"title":"Most recent queue item","prompt":"Given this task queue [\"task1\", \"task2\", \"task3\"], what's the last task currently waiting?"},{"title":"Final value in pipeline output","prompt":"Here are the results from my data pipeline: [10, 42, 7, 99] — what's the last value that came out?"}],"resultDescription":"Returns a JSON object with a boolean 'found' field indicating whether the array had any elements, and a 'value' field containing the last element of the array (or null/absent if empty).","failureModes":["Empty array returns found: false with no value","Missing 'values' field in request body causes a validation error","Non-array input for 'values' may cause parsing failure","Network or worker errors may return 5xx responses","Payment failure via x402 may result in 402 response blocking execution"],"whenToPreferThis":"Use this endpoint when an AI agent needs a cheap, reliable, pay-per-call primitive to extract the last element of an array without running custom code. Ideal when operating in an x402-enabled agent environment on Base where microtransactions are supported and compute resources are constrained.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:09.316Z","isFirstParty":false,"canonicalSlug":"one-engine-array-last-d376fd35"}