{"uid":"cap_gldWCK3L1Z4d_-MR2Rewg","slug":"text-trim-dedup-match-sort-pipeline-e7ce6f70","name":"Text Trim, Dedup, Match & Sort Pipeline","description":"Trim text fields → Remove duplicate rows → Match text in a column → Sort numbers descending: Process customer-supplied records: Trim text fields → Remove duplicate rows → Match text in a column → Sort numbers descending. Returns the processed output and row counts per step. No external data lookup. 0.01 USDC includes up to 300 flat records.","url":"https://market.datapackvibe.com/x402/assistant-cap-f9fc4f903694de7b729f?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"field":{"type":"string","default":"value","pattern":"^[a-zA-Z][a-zA-Z0-9_]{0,39}$","maxLength":40},"query":{"type":"string","default":"useful","maxLength":100,"minLength":1},"records":{"type":"array","items":{"type":"object","maxProperties":30,"additionalProperties":{"type":["string","number","boolean","null"]}},"default":[{"text":" Useful example ","value":10},{"text":"Useful example","value":20},{"text":"Other row","value":5}],"maxItems":300,"minItems":1}}},"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_9wjAJUAKdM3jlD2Was_Vr","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":"Processes an array of records through four sequential steps: trim text fields, remove duplicate rows, match text in a column, and sort numbers descending.","exampleAgentPrompt":"I have a list of customer records with a 'text' field and a 'value' field — can you trim the text fields, remove duplicates, keep only rows where the text matches 'Useful example', and then sort by value descending?","exampleUseCases":[{"title":"Clean and filter product catalog entries","prompt":"I've got up to 300 product catalog rows with a 'name' field and a 'price' field. Please trim the name fields, remove any duplicate rows, keep only rows where name matches 'Widget Pro', and sort the results by price descending."},{"title":"Deduplicate and rank survey responses","prompt":"Here are my survey response records with a 'response' field and a 'score' field. Trim all the response text, drop duplicates, filter to only rows where response matches 'satisfied', and sort by score from highest to lowest."},{"title":"Filter and sort sales lead records","prompt":"I have a batch of sales lead records with a 'company' text field and a 'revenue' number field. Run them through trimming and dedup first, then keep only leads where company matches 'Acme', and give me the results sorted by revenue descending."}],"resultDescription":"Returns the processed output records after all four pipeline steps (trim, dedup, match, sort descending), along with row counts at each step showing how many records remained after each transformation.","failureModes":["Empty records array (minItems:1 violated) returns validation error","Records array exceeds 300 items (maxItems exceeded) returns error","Field name doesn't match pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ returns validation error","Query string empty or exceeds 100 characters returns validation error","No rows match the query text — returns empty result set with zero matching rows","Records with missing or null target field may not match or sort correctly"],"whenToPreferThis":"Choose this endpoint when you need a chained, multi-step data cleaning pipeline (trim → dedup → text match → numeric sort) on up to 300 flat records in a single call, without needing any external data lookup. Ideal for lightweight ETL preprocessing tasks where records are already in hand and you want row counts at each transformation step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T13:07:24.895Z","isFirstParty":false,"canonicalSlug":"text-trim-dedup-match-sort-pipeline-e7ce6f70"}