{"uid":"cap_cONgRvIvl_WnrydLrcALI","slug":"delx-set-diff-2b5c8ddc","name":"Delx Set Diff","description":"Set difference a - b. Call when you remove blocked IDs from agent candidate lists. Returns difference 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-diff","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":2,"items":[1,3],"schema":"delx/util-set-diff/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_lyprhPpxGkuWEntXEb1Ge","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":"Computes the set difference (a minus b), returning elements in array a that are not present in array b, along with a count.","exampleAgentPrompt":"I have a candidate list [101, 202, 303, 404, 505] and a blocklist [202, 404] — remove the blocked IDs from the candidates and tell me what's left.","exampleUseCases":[{"title":"Filter blocked users from candidates","prompt":"I have a list of candidate user IDs [10, 20, 30, 40, 50] and a blocklist of banned users [20, 40] — subtract the blocked ones and show me who remains eligible."},{"title":"Remove seen items from recommendations","prompt":"My recommendation engine returned item IDs [1001, 1002, 1003, 1004, 1005] but the user has already seen [1002, 1004] — give me only the unseen recommendations."},{"title":"Exclude processed records from queue","prompt":"I have a batch of pending job IDs [7, 14, 21, 28, 35, 42] and a set of already-processed ones [14, 28, 42] — subtract the completed ones so I know what still needs to run."}],"resultDescription":"Returns the set difference — an array of elements that appear in array a but not in array b — along with a count of those items. No data is retained server-side; results are computed locally on the fly.","failureModes":["Missing or malformed array a or b returns a validation error","Non-array inputs cause a schema rejection","Payment failure via x402 on Base prevents the call from executing","Duplicate elements within a or b may affect result depending on implementation","Empty array a always returns an empty difference with count zero"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, stateless set-difference computation without standing up any infrastructure — ideal for agent workflows that need to subtract blocklists, deny lists, or already-processed IDs from candidate arrays in real time. It is purpose-built for agentic use: no API keys, no data retention, and payment via x402 on Base at $0.001 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:51:10.489Z","isFirstParty":false}