{"uid":"cap_ReONqDBcIYaaKKoDkmxOa","slug":"forgekit-money-allocate-fe2d190a","name":"ForgeKit Money Allocate","description":"ForgeKit money allocate (largest remainder, exact sum)","url":"https://useforgekit.dev/api/v1/compute/money/allocate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"total":{"type":"string"},"weights":{"type":"array","items":{"type":"number"}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/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_45lBbHTauZ4g3OumeYKOH","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":"Distributes a total monetary amount across weighted buckets using the largest remainder method to ensure the parts sum exactly to the total","exampleAgentPrompt":"Split $1,234.56 across three partners with weights 50, 30, and 20 — make sure the parts add up exactly to the total using largest remainder rounding.","exampleUseCases":[{"title":"Revenue share among co-founders","prompt":"Divide $18,750.00 of monthly revenue among four co-founders with weights 40, 25, 20, and 15 — I need the parts to add up to exactly $18,750.00 with no penny left over."},{"title":"Budget allocation across departments","prompt":"Allocate a $500,000 annual budget across five departments with weights 30, 25, 20, 15, and 10 — make sure the individual amounts sum precisely to $500,000."},{"title":"Split a restaurant bill by contribution","prompt":"We spent $347.89 total tonight. Split it among six people with weights 2, 2, 1.5, 1.5, 1, and 1 so that every dollar is accounted for and the amounts add up exactly."}],"resultDescription":"An array of monetary values corresponding to each weight, computed so that the individual rounded amounts sum exactly to the provided total — achieved via the largest remainder (Hamilton) method to eliminate rounding gaps or surpluses.","failureModes":["Weights array is empty or missing — likely returns a 400 error","Total is not a valid numeric string — parsing error or 400","Weights sum to zero — division by zero or error response","Negative weights provided — undefined behavior or error","Non-numeric values in weights array — schema validation failure"],"whenToPreferThis":"Use this endpoint when you need to split a monetary total into parts that must sum exactly to that total (no rounding errors), especially when the number of recipients and relative weights are known. It is preferable over naive percentage multiplication when exact-sum guarantees matter, such as in financial reporting, revenue sharing, or invoicing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:19.620Z","isFirstParty":false}