{"uid":"cap_DgrjucEwh7gRsL31-izEk","slug":"one-engine-array-reverse-7974dbca","name":"ONE Engine Array Reverse","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/reverse?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","description":"JSON array, maximum 1000 items"}}},"responseSchema":{"type":"json","example":{"count":3,"values":["c","b","a"]}},"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_H36OxIbXAih7-uspS4eCq","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":"Reverses the order of elements in a JSON array, returning the reversed array and its count.","exampleAgentPrompt":"Reverse this array of values for me: [\"c\", \"b\", \"a\"] — I need the items in the opposite order along with the count.","exampleUseCases":[{"title":"Reverse ranked leaderboard order","prompt":"I have a leaderboard array sorted from best to worst like [\"Alice\",\"Bob\",\"Carol\"] — can you reverse it so the worst performer is first?"},{"title":"Flip chronological event list","prompt":"Take this list of events in chronological order and flip it so the most recent one comes first: [\"Jan launch\",\"Feb update\",\"Mar release\"]."},{"title":"Invert priority queue for processing","prompt":"I've got a task priority queue [\"low\",\"medium\",\"high\",\"critical\"] and I need it reversed so critical tasks come last for bottom-up processing."}],"resultDescription":"Returns a JSON object with a 'count' integer indicating the number of elements, and a 'values' array containing the input items in reversed order.","failureModes":["Array exceeds 1000 items — request rejected","Malformed JSON input — parsing error returned","Empty array — returns count 0 and empty values array","Payment not included or insufficient — HTTP 402 returned","Non-array value passed in 'values' field — type validation error"],"whenToPreferThis":"Use this endpoint when an agent needs a simple, cheap, stateless array reversal via a pay-per-call API on Base using x402 micropayments, especially in automated pipelines where no local compute is preferred or the reversal is one step in a larger agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:32.170Z","isFirstParty":false,"canonicalSlug":"one-engine-array-reverse-c1e3b700"}