{"uid":"cap_8vo055f7LrPulaV_M1cu3","slug":"delx-is-subset-6ba140b6","name":"Delx Is Subset","description":"Check whether list a is subset of list b. Call when you verify required tags are present in agent sets. Returns subset boolean 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/is-subset","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_E7XnERdLDPSj8nBdDqRXV","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 all elements of list A are contained within list B, returning a boolean subset result","exampleAgentPrompt":"Check if all of the items in [\"read\", \"write\"] are present in the list [\"read\", \"write\", \"execute\", \"delete\"] — basically, is the first list a subset of the second?","exampleUseCases":[{"title":"Required tags present in agent output","prompt":"I need to verify that all of my required tags — [\"priority\", \"category\", \"owner\"] — are actually present in this agent's output tag set [\"priority\", \"category\", \"owner\", \"timestamp\", \"source\"]. Can you check if the first list is a complete subset of the second?"},{"title":"Permission scope validation before action","prompt":"Before I let this workflow proceed, check whether all the permissions it needs — [\"read:users\", \"write:logs\"] — are included in the granted permission set [\"read:users\", \"write:logs\", \"read:metrics\"]. Is the required set a subset of what's been granted?"},{"title":"Prerequisite feature check for agent capability","prompt":"I want to confirm that all the features my agent requires — [\"tool_use\", \"memory\", \"streaming\"] — are available in the target runtime's feature list [\"tool_use\", \"memory\"]. Is the required features list a subset of the available ones?"}],"resultDescription":"A boolean value indicating whether every element in list A also appears in list B (true if A is a subset of B, false otherwise). No additional metadata or retention occurs; result is computed locally and returned immediately.","failureModes":["Non-array input for either parameter causes a validation error","Empty list A always returns true (empty set is subset of any set)","Duplicate elements in either list may affect comparison depending on implementation","Network timeout if the service is temporarily unavailable","Incorrect type elements in arrays (e.g., mixed types) may cause unexpected comparison results"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, stateless check to verify that one list's elements are all contained within another list — particularly for agent-side tag validation, permission checking, or prerequisite verification. At $0.001 USDC per call it is cost-effective for high-frequency checks in automated pipelines. Prefer this over writing inline set logic when you want a reliable, auditable, externally-computed result without managing state or keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:48:53.541Z","isFirstParty":false}