{"uid":"cap_-7ZY4mraJ007oPKdq3vAR","slug":"agent-rest-stop-slippagecap-8ce6c1bb","name":"Agent Rest Stop – SlippageCap","description":"Largest size still under the slippage cap.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/SlippageCap?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max_bps":{"type":"string"},"amount_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_QeG6OZzyczf9C8LKGrbxk","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":"Returns the largest trade amount (in USD) that still fits under a given slippage cap expressed in basis points","exampleAgentPrompt":"What's the largest trade I can make if my slippage cap is 50 basis points and I'm working with a $1000 position?","exampleUseCases":[{"title":"Safe DeFi swap sizing","prompt":"I want to swap some tokens on-chain. My slippage tolerance is 30 basis points and I'm thinking of trading $500. What's the biggest amount I can actually put through without busting my slippage cap?"},{"title":"Risk-managed algorithmic trading","prompt":"For my trading bot, if the max allowed slippage is 75 bps and the intended order size is $2500, what's the largest chunk I can safely execute at once?"},{"title":"Portfolio rebalancing order cap","prompt":"I'm rebalancing and need to stay under 20 basis points of slippage on each leg. My target allocation shift is worth $800 — what's the maximum single order size that keeps me within that limit?"}],"resultDescription":"A computed maximum trade size in USD that is the largest amount still within the specified slippage cap (in basis points), helping agents size orders to avoid exceeding price impact thresholds.","failureModes":["Missing or invalid max_bps value may return an error or unexpected result","Non-numeric strings for amount_usd or max_bps may cause computation failure","Extremely high or zero basis point inputs may produce edge-case results","Endpoint may return an error if required fields are omitted"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically determine the safe maximum trade or swap size given a specific slippage tolerance in basis points, especially for DeFi or crypto trading workflows where price impact must be capped before submitting an order.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:38:54.309Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-slippagecap-8ce6c1bb"}