{"uid":"cap_rWZUSKZMAK0TsQmJVjZFp","slug":"agent-rest-stop-budget-split-4d598bf7","name":"Agent Rest Stop Budget Split","description":"Splits a budget by weight without passing caps.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/BudgetSplit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"string"},"budget_usd":{"type":"string"}}},"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_05djJt5pTU6CyCb109Y7q","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":"Splits a total USD budget across weighted items without exceeding any individual cap.","exampleAgentPrompt":"Split a $300 budget across three items — marketing at weight 0.5, engineering at weight 0.3, and design at weight 0.2 — without letting any single item exceed its cap.","exampleUseCases":[{"title":"Advertising spend allocation","prompt":"I have a $1,000 ad budget and three channels: search gets weight 0.5, social gets 0.35, and display gets 0.15. Can you split the budget across them by weight?"},{"title":"Project team budget distribution","prompt":"Divide a $2,500 project budget among four teams — backend (0.4), frontend (0.3), QA (0.2), and design (0.1) — weighted proportionally."},{"title":"Event category spending plan","prompt":"I'm planning an event with a $750 budget. Split it by weight: venue 0.45, catering 0.35, and decorations 0.20."}],"resultDescription":"Returns the computed budget allocation for each input item, with amounts split proportionally by weight and constrained so no item exceeds its cap. Likely includes per-item dollar amounts that sum to or stay within the total budget_usd.","failureModes":["Weights that sum to zero or are malformed may cause division errors or unexpected results","Non-numeric or missing budget_usd value will likely cause a parsing or validation failure","Malformed items string (wrong delimiter or format) may result in incorrect splits or errors","Weights summing to more or less than expected may cause proportional distortions","API returns HTTP 402 if payment of $0.01 USDC is not provided"],"whenToPreferThis":"Use this endpoint when you need to programmatically divide a fixed USD budget across multiple named items according to relative weights, especially when you want the guarantee that no individual allocation exceeds a cap. Prefer this over manual calculation when the number of items or weight values may vary dynamically in an agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:54.631Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-budget-split-4d598bf7"}