{"uid":"cap_A8DQG0fQ-nkUb8S6XOkes","slug":"color-swatches-string-normalisation-and-numeric-row-ordering-d959adca","name":"Color Swatches String Normalisation and Numeric Row Ordering","description":"Color swatches — String normalisation + Numeric row ordering: String normalisation + Numeric row ordering for supplied color swatches records (luminance, chroma). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-creative-20-025?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","asset_group","date","luminance","chroma"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"chroma":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"luminance":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"asset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","chroma":1,"row_id":"row-1","luminance":10,"asset_group":"group-a"},{"date":"2026-10-02","chroma":2,"row_id":"row-2","luminance":20,"asset_group":"group-b"},{"date":"2026-10-03","chroma":3,"row_id":"row-3","luminance":15,"asset_group":"group-a"},{"date":"2026-10-04","chroma":4,"row_id":"row-4","luminance":30,"asset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["luminance","chroma"],"type":"string","default":"luminance"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l5b8cflU1MLd86Pmt39IG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalises string fields and orders rows numerically by luminance or chroma for up to 200 color swatch records, producing two analytical reports.","exampleAgentPrompt":"I have 4 color swatch records with luminance and chroma values — can you normalize the string fields and sort them numerically by luminance? The rows are: row-1 (group-a, 2026-10-01, luminance=10, chroma=1), row-2 (group-b, 2026-10-02, luminance=20, chroma=2), row-3 (group-a, 2026-10-03, luminance=15, chroma=3), row-4 (group-b, 2026-10-04, luminance=30, chroma=4).","exampleUseCases":[{"title":"Sort paint palette by brightness","prompt":"I have a list of 8 paint swatches with their luminance scores — can you normalize the group names and sort all the rows numerically by luminance so I can see them brightest to darkest? Here are the rows: row-1 (warm-tones, 2026-11-01, luminance=72, chroma=45), row-2 (cool-tones, 2026-11-02, luminance=31, chroma=88), row-3 (warm-tones, 2026-11-03, luminance=55, chroma=12), row-4 (neutrals, 2026-11-04, luminance=90, chroma=5), row-5 (cool-tones, 2026-11-05, luminance=18, chroma=67), row-6 (neutrals, 2026-11-06, luminance=44, chroma=33), row-7 (warm-tones, 2026-11-07, luminance=61, chroma=22), row-8 (cool-tones, 2026-11-08, luminance=27, chroma=79)."},{"title":"Rank fabric colors by chroma saturation","prompt":"Can you take these 6 fabric color records and give me a string-normalized, numerically ordered report ranked by chroma? Rows are: swatch-A (fabric-set-1, 2026-09-10, luminance=50, chroma=300), swatch-B (fabric-set-2, 2026-09-11, luminance=70, chroma=150), swatch-C (fabric-set-1, 2026-09-12, luminance=40, chroma=450), swatch-D (fabric-set-3, 2026-09-13, luminance=60, chroma=200), swatch-E (fabric-set-2, 2026-09-14, luminance=35, chroma=500), swatch-F (fabric-set-3, 2026-09-15, luminance=80, chroma=100), with field set to chroma."},{"title":"Clean color dataset before design review","prompt":"Before my design review I need to normalize the string fields and get a numeric ordering by luminance for these 5 brand color swatches: color-1 (primary-palette, 2026-12-01, luminance=88, chroma=10), color-2 (secondary-palette, 2026-12-02, luminance=22, chroma=55), color-3 (primary-palette, 2026-12-03, luminance=65, chroma=30), color-4 (accent-palette, 2026-12-04, luminance=45, chroma=75), color-5 (secondary-palette, 2026-12-05, luminance=77, chroma=20)."}],"resultDescription":"Returns two reports: (1) a string-normalised version of the supplied color swatch records with cleaned asset_group and row_id fields, and (2) a numerically ordered ranking of the rows by the selected field (luminance or chroma), all computed locally without external lookups.","failureModes":["More than 200 rows supplied — request rejected with validation error","Missing required fields (row_id, asset_group, date, luminance, chroma) — row rejected or error returned","Invalid date format (not YYYY-MM-DD) — validation failure","Field selector not one of 'luminance' or 'chroma' — enum validation error","Numeric values outside allowed range (±1,000,000,000,000) — validation failure"],"whenToPreferThis":"Choose this endpoint when you have color swatch records with luminance and chroma attributes and need both string normalization of label fields and numeric ordering in a single call, without requiring any external lookup or prediction. It is well-suited for small-to-medium datasets (up to 200 rows) in creative, design, or product contexts where deterministic, offline analytical processing is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T00:40:34.295Z","isFirstParty":false,"canonicalSlug":"color-swatches-string-normalisation-and-numeric-row-ordering-d959adca"}