{"uid":"cap_QXU7nDGGR8grnhn9UGAKc","slug":"delx-set-union-174ffcff","name":"Delx Set Union","description":"Set union of two lists (order-preserving). Call when you merge agent allowlists. Returns union items and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/set-union","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"array","description":"Input field: a."},"b":{"type":"array","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"count":3,"items":[1,2,3],"schema":"delx/util-set-union/v1"}},"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_z8zeuBcJfXgppDhrGfO8P","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 order-preserving union of two JSON arrays, with a count of the resulting items.","exampleAgentPrompt":"Merge these two allowlists into a single deduplicated, order-preserving union: [\"read\", \"write\", \"delete\"] and [\"write\", \"execute\", \"read\"].","exampleUseCases":[{"title":"Merging agent permission allowlists","prompt":"I have two agent role allowlists — [\"view\", \"edit\", \"comment\"] and [\"edit\", \"publish\", \"delete\"] — can you combine them into one deduplicated list preserving order?"},{"title":"Combining feature flag sets across environments","prompt":"My staging flags are [\"feature_a\", \"feature_b\", \"feature_c\"] and my prod flags are [\"feature_b\", \"feature_d\"]. Give me the full ordered union of all unique flags across both environments."},{"title":"Deduplicating merged tag lists","prompt":"I pulled content tags from two different sources: [\"ai\", \"ml\", \"data\"] and [\"data\", \"cloud\", \"ai\"]. Merge them into one order-preserving list with no duplicates."}],"resultDescription":"Returns the order-preserving union of the two input arrays (items from array A first, then any items from array B not already in A), along with the total count of items in the resulting union.","failureModes":["Non-array inputs for a or b will likely cause a validation error","Missing required fields (a or b) may return a 400 error","Payment failure via x402 will prevent the response from being returned","Very large arrays may increase latency or hit size limits"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, order-preserving set union of two JSON arrays — especially for merging allowlists, permission sets, or tag lists in an agent workflow — and you don't need a full general-purpose data processing pipeline. Ideal for lightweight agentic set math where no external data, authentication, or side effects are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:50:28.676Z","isFirstParty":false}