{"uid":"cap_LJNaGIceXkmlyTYbawS_y","slug":"delx-unique-sorted-2dcbe58d","name":"Delx Unique Sorted","description":"Unique and sort a JSON list. Call when you need stable unique keys for agent set math. Returns sorted unique 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/unique-sorted","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","description":"Input field: items."}}},"responseSchema":{"type":"json","example":{"count":3,"items":[1,2,3],"schema":"delx/util-unique-sorted/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_5p6MOPP4u-kdgQYdqt7St","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":"Deduplicates and sorts a JSON array, returning unique items in stable sorted order with a count","exampleAgentPrompt":"Deduplicate and sort this list for me: [\"banana\", \"apple\", \"cherry\", \"apple\", \"banana\", \"date\"] — I need the unique items in stable sorted order with a count.","exampleUseCases":[{"title":"Deduplicating agent tool tags","prompt":"I have a list of tags collected from multiple agent runs and there are duplicates everywhere — can you deduplicate and sort this array so I get a clean canonical set: [\"retry\", \"auth\", \"timeout\", \"retry\", \"auth\", \"parse\"]?"},{"title":"Stable key set for set math","prompt":"I need to build a stable unique sorted key list from this array before I do a set intersection: [\"user:42\", \"user:7\", \"user:42\", \"user:99\", \"user:7\"]. Can you run it through unique-sorted for me?"},{"title":"Normalizing config option lists","prompt":"This config file has repeated environment names — can you deduplicate and sort this list so I end up with a clean unique sorted array: [\"production\", \"staging\", \"development\", \"staging\", \"production\"]?"}],"resultDescription":"Returns a sorted array containing only unique items from the input, plus an integer count of those unique items. No data is retained; processing is local and first-party only.","failureModes":["Non-array input returns a validation error","Empty array returns an empty sorted list with count 0","Malformed JSON body causes a 400-level error","Payment not submitted or insufficient USDC balance causes a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stable, deduplicated and sorted version of a JSON array without any network lookups or external data retention — ideal for agent set math, canonical key normalization, or preflight deduplication steps at minimal cost ($0.001 USDC). Prefer it over client-side logic when you want a consistent, auditable transformation in a pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:54:54.239Z","isFirstParty":false}