{"uid":"cap_RYD5gW1fyjRagIYAM_sdS","slug":"json-array-intersection-32f5f098","name":"JSON Array Intersection","description":"JSON Array Intersection: JSON Array Intersection returns values shared by two JSON arrays in left-side order from bounded caller-supplied values without an external provider. Call JSON Array Intersection before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Array Intersection as versioned deterministic JSON. Price: $0.00…","url":"https://api.delx.ai/api/v1/x402/json-array-intersection","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"left":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Left supplied to JSON Array Intersection; used only for this bounded calculation and processed in memory without retention."},"right":{"type":"array","items":{"type":"integer"},"maxItems":256,"description":"Right supplied to JSON Array Intersection; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"count":2,"items":[2,3]},"schema":"delx/util-json-array-intersection/v1","status":"pass","evidence":{"retained":false,"input_sha256":"3935c5e3bdec4177763cd3e7cf434284e8981e33d97a90a0407de0251171a40d","external_calls":0},"operation":"data_batch:json_array_intersection"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bBIVXqgce1FeXe2DO9XIG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the set of values shared by two integer arrays, preserving left-side order, with counts and normalized values as deterministic versioned JSON.","exampleAgentPrompt":"Find the intersection of these two integer arrays for me — left is [1, 2, 3, 4, 5] and right is [3, 4, 5, 6, 7] — I need the shared values in left-side order with counts.","exampleUseCases":[{"title":"Filter pipeline shared product IDs","prompt":"I have two lists of product IDs — the left list is what's in our warehouse [101, 204, 305, 408] and the right list is what a customer ordered [204, 305, 999, 101]. Can you find which product IDs appear in both lists, in the order they appear on the left?"},{"title":"Validate overlapping user permission sets","prompt":"Before passing permissions to the downstream access-control tool, find me the integers that appear in both of these permission code arrays: left is [10, 20, 30, 40, 50] and right is [20, 40, 60, 80]."},{"title":"Reconcile two batch job output sets","prompt":"I ran two batch jobs and got integer result sets — left job returned [7, 14, 21, 28, 35] and right job returned [14, 28, 42, 56]. What values did both jobs produce in common?"}],"resultDescription":"A versioned deterministic JSON object containing the intersection values in left-side order, the count of shared elements, normalized values, and a versioned result contract. No data is retained after processing.","failureModes":["Arrays exceeding 256 items per side will be rejected","Non-integer array items will fail schema validation","Missing or malformed left/right fields return a validation error","Empty arrays on either side return an empty intersection result","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, deterministic set-intersection over two bounded integer arrays without building custom logic — especially useful before handing structured data to a downstream tool that requires a strict contract on shared values. Prefer this over general-purpose code execution when you need a versioned, auditable result with normalized output for agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:48.157Z","isFirstParty":false}