{"uid":"cap_vK7I6tb9BTNZF5_wE81bE","slug":"json-enum-fields-check-5445f28e","name":"JSON Enum Fields Check","description":"JSON Enum Fields Check: JSON Enum Fields Check checks selected fields against caller-provided enum values from bounded caller-supplied values without an external provider. Call JSON Enum Fields Check 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 Enum Fields Check as versioned deterministic JSON. Price: $0.001 USD…","url":"https://api.delx.ai/api/v1/x402/json-enum-fields-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"enums":{"type":"object","description":"Enums supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"object":{"type":"object","description":"Object supplied to JSON Enum Fields Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"passed":true,"invalid_fields":[]},"schema":"delx/util-json-enum-fields-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"754b21ec3bf827fca52ae9e586537f3d14e39c664553bd2f27e0638c10c32ba6","external_calls":0},"operation":"data_batch:json_enum_fields_check"}},"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_5ILQSp8mdEmjVhh5wO4fp","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":"Validates selected fields in a JSON object against caller-provided enum value sets, returning counts, normalized values, and a versioned deterministic result.","exampleAgentPrompt":"Before I send this order payload downstream, check that the 'status' and 'priority' fields only contain allowed values — status can be 'pending', 'active', or 'closed', and priority can be 'low', 'medium', or 'high'. Here's the object: {\"status\": \"actve\", \"priority\": \"urgent\", \"id\": 42}.","exampleUseCases":[{"title":"Pre-pipeline enum compliance gate","prompt":"I'm about to hand this batch plan to a fulfillment tool that only accepts 'standard', 'express', or 'overnight' for the shipping_type field. Can you validate this object against those allowed values first and tell me if anything is out of range?"},{"title":"Agent output field validation","prompt":"My agent just produced a structured result with a 'category' field that should only be 'news', 'blog', or 'product'. Check this JSON object against those enum values and give me a count of valid vs invalid entries."},{"title":"Normalize and verify user-submitted form data","prompt":"A user submitted a form with a 'region' field — valid options are 'NA', 'EMEA', 'APAC', and 'LATAM'. Validate this submitted object against those enums and tell me which fields failed and what normalized values you found."}],"resultDescription":"Returns a versioned deterministic JSON object containing validation findings per field, counts of matching and non-matching values, normalized values found, and a versioned result contract — all processed in memory without data retention.","failureModes":["Missing or malformed 'object' input returns validation error","Missing or malformed 'enums' map returns validation error","Exceeding 128 properties on either input object or enums map may be rejected","Fields in object not present in enums map are flagged or skipped depending on contract","Payment not provided or insufficient USDC results in HTTP 402 rejection"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic, in-memory enum validation of JSON object fields against caller-supplied allowed value sets — especially before handing structured data to a downstream tool with a strict contract. It is ideal when you do not need an external schema registry or third-party validator, and you want a versioned, auditable result with normalized values and counts for a flat cost of $0.001 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:58:58.447Z","isFirstParty":false,"canonicalSlug":"json-enum-fields-check-5445f28e"}