{"uid":"cap_7PrRq1BvuqZnFh0IQ9bZo","slug":"json-array-filter-keys-dc9c53e6","name":"JSON Array Filter Keys","description":"JSON Array Filter Keys: JSON Array Filter Keys keeps object rows whose selected key matches caller values from bounded caller-supplied values without an external provider. Call JSON Array Filter Keys 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 Filter Keys as versioned deterministic JSON. Price: $0.001 USD…","url":"https://api.delx.ai/api/v1/x402/json-array-filter-keys","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","maxLength":8192,"description":"Key supplied to JSON Array Filter Keys; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"object","maxProperties":128,"additionalProperties":true},"maxItems":256,"description":"Items supplied to JSON Array Filter Keys; used only for this bounded calculation and processed in memory without retention."},"allowed":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Allowed supplied to JSON Array Filter Keys; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":[{"id":1,"status":"ok"}],"matched_count":1},"schema":"delx/util-json-array-filter-keys/v1","status":"pass","evidence":{"retained":false,"input_sha256":"c1b64d403dd4df4223045c843cca745575ec8fc78aca3b171b5d12f60601eb75","external_calls":0},"operation":"data_batch:json_array_filter_keys"}},"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_N4LuFX7cBvlWCcQfIqDrW","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":"Filters rows in a JSON object array, keeping only objects whose specified key matches one of a set of allowed values","exampleAgentPrompt":"Filter this array of product records to only keep rows where the 'status' key matches 'active' or 'pending': [{\"id\":1,\"status\":\"active\"},{\"id\":2,\"status\":\"archived\"},{\"id\":3,\"status\":\"pending\"}]","exampleUseCases":[{"title":"Filter pipeline data by category","prompt":"I have a batch of transaction records and I only want to keep the ones where the 'type' field is either 'deposit' or 'withdrawal' — can you filter out everything else?"},{"title":"Whitelist product statuses before handoff","prompt":"Before I send this product catalog to the fulfillment API, filter the array to only include items where 'availability' is 'in_stock' or 'preorder' — drop anything else."},{"title":"Narrow user records by role","prompt":"Here's a list of user objects; I need only the rows where 'role' equals 'admin' or 'moderator' — can you give me back just those?"}],"resultDescription":"Returns a versioned deterministic JSON object containing the filtered array (only rows whose specified key matched an allowed value), row counts for total input and matched output, normalized values, and a versioned result contract for downstream compatibility.","failureModes":["Key not found in any object — returns empty filtered array with zero match count","Items array exceeds 256 objects — request rejected with validation error","Allowed list exceeds 256 entries — request rejected","Key string exceeds 8192 characters — request rejected","Malformed input JSON — returns schema validation error","Empty allowed list — returns empty array"],"whenToPreferThis":"Use this endpoint when an agent needs a deterministic, in-memory, stateless key-based whitelist filter on a JSON object array before passing structured data to a downstream tool with a stricter schema contract. Prefer it over general-purpose code execution when you need a versioned, reproducible result with counts and no side effects, and when the dataset fits within 256 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:15:00.149Z","isFirstParty":false}