{"uid":"cap_aak5LFEX8mrDJY7H1Jaqo","slug":"one-engine-array-rotate-3e0400f0","name":"ONE Engine Array Rotate","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/array/rotate/t1?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"size":{"type":"integer"},"other":{"type":"array","description":"Optional comparison array"},"offset":{"type":"integer"},"values":{"type":"array","description":"JSON array with at most 1000 items"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dtHse7MN9eRz9baDx_AZy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rotates the elements of a JSON array by a given offset, optionally comparing against a second array.","exampleAgentPrompt":"Rotate this array [\"a\",\"b\",\"c\",\"d\",\"e\"] by 2 positions to the right.","exampleUseCases":[{"title":"Shift rotating schedule by days","prompt":"I have a weekly rotation list [\"Alice\",\"Bob\",\"Carol\",\"Dave\"] and today is day 3 of the cycle — rotate the array by 3 so the right person is first."},{"title":"Circular buffer reorder","prompt":"Rotate this sensor reading queue [10,20,30,40,50,60] by an offset of 4 so the latest reading comes first."},{"title":"Round-robin task reassignment","prompt":"I have a list of agents [\"agent1\",\"agent2\",\"agent3\",\"agent4\",\"agent5\"] and I need to shift assignments by 2 positions for the next round — rotate the array by 2."}],"resultDescription":"Returns an object containing the rotated array with elements shifted by the specified offset, wrapping around cyclically. May also include comparison results if an optional second array was provided.","failureModes":["Missing required 'values' field returns an error","Array exceeds 1000-item limit results in rejection","Invalid offset type (non-integer) causes a validation error","Payment failure (402) if x402 payment header is missing or insufficient","Malformed JSON body returns a parse error"],"whenToPreferThis":"Use this endpoint when you need a simple, cheap, stateless array rotation operation within an autonomous agent pipeline and don't want to run custom code. At $0.0005 per call it is ideal for high-frequency agent workflows that need reliable cyclic shifting of ordered lists without spinning up compute infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:06.494Z","isFirstParty":false,"canonicalSlug":"one-engine-array-rotate-bef2ad3d"}