{"uid":"cap_GZ_yVAnXEvIDD6unVmfTT","slug":"inventory-record-grouper-bef69824","name":"Inventory Record Grouper","description":"Inventory Record grouper: Group JSON records by a selected field. Tailored for inventory workflows.","url":"https://market.datapackvibe.com/x402/group-records-inventory?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"key":{"type":"string","default":"type"},"records":{"type":"array","items":{"type":"object"},"default":[{"type":"open","count":2},{"type":"closed","count":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_m3J0_dw62HijafC_WxokY","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":"Groups an array of JSON inventory records by a specified field key, returning records organized into named buckets.","exampleAgentPrompt":"Can you group these inventory records by their 'type' field: [{\"type\":\"open\",\"count\":2},{\"type\":\"closed\",\"count\":1},{\"type\":\"open\",\"count\":5}]?","exampleUseCases":[{"title":"Grouping stock items by status","prompt":"I have a list of inventory records and I need them grouped by their 'status' field — something like [{\"status\":\"available\",\"sku\":\"A1\"},{\"status\":\"backordered\",\"sku\":\"B2\"},{\"status\":\"available\",\"sku\":\"C3\"}]. Can you split those into buckets for me?"},{"title":"Organizing warehouse items by location","prompt":"Take these warehouse inventory entries and group them by 'location': [{\"location\":\"aisle-1\",\"item\":\"bolt\"},{\"location\":\"aisle-2\",\"item\":\"wrench\"},{\"location\":\"aisle-1\",\"item\":\"nut\"}]."},{"title":"Categorizing products by type for reporting","prompt":"I need to categorize these product records by 'category' for my inventory report: [{\"category\":\"electronics\",\"name\":\"TV\"},{\"category\":\"furniture\",\"name\":\"Chair\"},{\"category\":\"electronics\",\"name\":\"Radio\"}] — can you group them?"}],"resultDescription":"Returns an object where each key is a distinct value of the specified grouping field, and the corresponding value is an array of all records that matched that key. For example, grouping by 'type' produces {\"open\":[...],\"closed\":[...]} buckets.","failureModes":["Missing or empty 'records' array returns an error or empty result","Specified 'key' field not present in any records results in a single undefined bucket or empty groupings","Malformed JSON in records array causes a parse error","Non-string grouping key values may produce unexpected bucket names"],"whenToPreferThis":"Choose this endpoint when you have a flat array of inventory JSON records and need to partition them into named groups by a single field value — especially within inventory, warehouse, or stock management workflows where field-based categorization is needed without a full database or analytics platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T06:48:17.650Z","isFirstParty":false,"canonicalSlug":"inventory-record-grouper-bef69824"}