{"uid":"cap_H6yPx1Ut2Xlii0bNvUSHU","slug":"delx-commerce-is-subset-array-validator-4bd3fc05","name":"Delx Commerce — Is-Subset Array Validator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/is-subset?utm_source=zero.xyz","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":{"schema":"delx/util-is-subset/v1","subset":true,"a_count":2,"b_count":3}},"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_Chsyud1lx2WZI3_W2YO08","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":"Checks whether array A is a subset of array B, returning a boolean result with element counts for both arrays.","exampleAgentPrompt":"Can you check if [\"apple\", \"banana\"] is a subset of [\"apple\", \"banana\", \"cherry\", \"date\"]?","exampleUseCases":[{"title":"Permission scope validation","prompt":"Check if the permissions [\"read\", \"write\"] are all included within the granted permissions [\"read\", \"write\", \"delete\", \"admin\"] — I need to know if the requested scope is fully covered."},{"title":"Tag filtering for content rules","prompt":"Are the required tags [\"urgent\", \"billing\"] all present in this ticket's tags [\"urgent\", \"billing\", \"refund\", \"escalated\"]? I want to know if it qualifies for auto-routing."},{"title":"Feature flag prerequisite check","prompt":"Verify whether the required feature flags [\"dark_mode\", \"beta_checkout\"] are all included in the user's enabled flags [\"dark_mode\", \"beta_checkout\", \"notifications\"] before unlocking the premium flow."}],"resultDescription":"Returns a JSON object with a 'subset' boolean indicating whether array A is entirely contained in array B, along with 'a_count' (number of elements in A) and 'b_count' (number of elements in B), and a schema identifier string.","failureModes":["Missing or malformed 'a' or 'b' fields returns an error","Non-array values for 'a' or 'b' may cause a validation error","Payment failure via x402 protocol results in a 402 response and no result","Empty array A may return subset=true (vacuous truth), which can be unexpected"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call subset check with no signup overhead, especially in agent workflows that require verifiable, micropayment-gated computation. Prefer it over implementing custom set logic when you want a stateless, auditable result with guaranteed delivery confirmation via USDC on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:43.234Z","isFirstParty":false,"canonicalSlug":"delx-commerce-is-subset-array-validator-4bd3fc05"}