{"uid":"cap_cSL7lE11CyYKQneZTCT2Y","slug":"energybilltoolkit-co-uk-7f4ac97c","name":"M2M Trust Pareto Audit – Defect/Waste/Loss/Rework Ranking","description":"M2M Trust deterministic analysis tool: Pareto ranking for defect, waste, loss or rework categories.","url":"https://energybilltoolkit.co.uk/m2m-trust/api/tools/pareto-audit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","required":["label","count"],"properties":{"count":{"type":"number","description":"Positive count/value.","exclusiveMinimum":0},"label":{"type":"string","minLength":1,"description":"Category label."}},"additionalProperties":false},"minItems":1}}},"responseSchema":null,"example":{"request":{"categories":[{"count":45,"label":"scratches"},{"count":30,"label":"misalignment"},{"count":12,"label":"wrong_label"},{"count":8,"label":"contamination"},{"count":5,"label":"broken_seal"}]},"response":{"status":"Ranked","verdict":"Top categories are scratches, misalignment with 75% cumulative contribution.","metadata":{"items":[{"rank":1,"count":45,"label":"scratches","share":0.45,"cumulative_share":0.45},{"rank":2,"count":30,"label":"misalignment","share":0.3,"cumulative_share":0.75},{"rank":3,"count":12,"label":"wrong_label","share":0.12,"cumulative_share":0.87},{"rank":4,"count":8,"label":"contamination","share":0.08,"cumulative_share":0.95},{"rank":5,"count":5,"label":"broken_seal","share":0.05,"cumulative_share":1}],"total":100,"category_count":5},"confidence":0.65}},"exampleRequest":{"categories":[{"count":45,"label":"scratches"},{"count":30,"label":"misalignment"},{"count":12,"label":"wrong_label"},{"count":8,"label":"contamination"},{"count":5,"label":"broken_seal"}]},"tags":["x402"],"displayCostAmount":"0.010000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.010000/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_t33RkMsH_06gP4WIwxZl4","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":"Performs deterministic Pareto ranking analysis on a list of defect, waste, loss, or rework categories to identify the vital few contributing most to overall issues.","exampleAgentPrompt":"Run a Pareto audit on these defect categories for me — scratches: 45, misalignment: 30, wrong label: 12, contamination: 8, broken seal: 5 — and tell me which ones account for 80% of total defects.","exampleUseCases":null,"resultDescription":"A deterministically computed Pareto ranking of the input categories, including individual counts, percentage contributions, cumulative percentages, and a classification of which categories fall within the vital-few (typically ~80% of total impact) versus the trivial-many tail.","failureModes":["Missing or empty category list returns a 400 validation error","Non-numeric counts or negative values may cause a 422 unprocessable entity error","All categories with equal counts produce a flat Pareto with no clear vital few","Single-category input returns trivial 100% result with a warning","Malformed JSON body returns a 400 parse error"],"whenToPreferThis":"Use this endpoint when you need a fully deterministic, reproducible Pareto ranking without any AI or stochastic variance — ideal for quality audits, Lean Six Sigma workflows, or any scenario where audit trails require consistent outputs given the same inputs. Prefer it over general-purpose analytics tools when you need structured cumulative-percentage breakdowns conforming to Pareto/80-20 methodology.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:46:59.236Z","isFirstParty":false}