{"uid":"cap_Rzv5kv-0iC9juL0iyYmUm","slug":"trim-deduplicate-match-and-count-records-pipeline-ba6ab0b2","name":"Trim, Deduplicate, Match, and Count Records Pipeline","description":"Trim text fields → Remove duplicate rows → Match text in a column → Count values by group: Process customer-supplied records: Trim text fields → Remove duplicate rows → Match text in a column → Count values by group. 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-2034f06d02a91a0e2a70?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"field":{"type":"string","default":"text","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_atr2d0j_GB2IUK39aW0RU","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 tabular records through a four-step pipeline: trims text whitespace, removes duplicate rows, filters rows matching a text query, and counts values by group.","exampleAgentPrompt":"I have a list of customer records with a 'name' field — can you trim the whitespace, remove duplicates, find all rows where 'name' contains 'Acme', and tell me the count at each step? Here are the records: [{\"name\": \" Acme Corp \"}, {\"name\": \"Acme Corp\"}, {\"name\": \"Beta LLC\"}].","exampleUseCases":[{"title":"Clean and count survey responses","prompt":"I have 200 survey responses in a 'response' field. Can you trim whitespace, remove duplicate answers, filter for ones containing 'satisfied', and give me the count at each processing step?"},{"title":"Deduplicate product catalog entries","prompt":"Here's a list of up to 300 product records with a 'title' field — please trim the text, deduplicate, find all entries matching 'wireless', and count how many are left at each stage."},{"title":"Filter and count customer feedback by keyword","prompt":"I've got a batch of customer feedback records with a 'comment' column. Run them through the pipeline — trim whitespace, remove duplicates, match rows containing 'refund', and count the results by group."}],"resultDescription":"Returns the processed output records and row counts for each pipeline step: after trimming, after deduplication, after text matching, and after grouping — so the agent can see exactly how many records survived each transformation.","failureModes":["Empty records array (minItems:1 violated) returns validation error","Field name doesn't match pattern ^[a-zA-Z][a-zA-Z0-9_]{0,39}$ returns schema error","Query string empty or over 100 characters returns validation error","More than 300 records submitted (maxItems exceeded) returns rejection","Records contain objects with more than 30 properties (maxProperties exceeded)"],"whenToPreferThis":"Choose this endpoint when you need a self-contained, four-step text-cleaning and counting pipeline on up to 300 records without any external data lookup — especially when you want row counts at each stage (trim → deduplicate → match → count) in a single call at a fixed low cost of $0.01 USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T13:07:13.989Z","isFirstParty":false,"canonicalSlug":"trim-deduplicate-match-and-count-records-pipeline-ba6ab0b2"}