{"uid":"cap_X7xTJbvzxzMLz6PrS0VDK","slug":"keeperhub-exit-guard-exit-workflow-c7ed422c","name":"KeeperHub Exit Guard Exit Workflow","description":"Build powerful blockchain workflow automations with a visual, node-based editor. Built with Next.js and React Flow.","url":"https://app.keeperhub.com/api/mcp/workflows/exit-guard-exit/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["owner","token","feeBps","poolFee","amountIn","amountOutMinimum"],"properties":{"owner":{"type":"string","description":"Position owner"},"token":{"type":"string","description":"ERC-20"},"feeBps":{"type":"string","description":"Fee bps"},"poolFee":{"type":"string","description":"Fee tier"},"amountIn":{"type":"string","description":"Amount in"},"amountOutMinimum":{"type":"string","description":"Min out"}}},"responseSchema":{"to":"0x0000000000000000000000000000000000000000","data":"0xa9059cbb","type":"calldata","value":"0"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_et11C5ob6O-jbFTGV96N9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates calldata to exit a liquidity position by swapping an ERC-20 token with a minimum output guard, via KeeperHub's blockchain workflow automation platform","exampleAgentPrompt":"Generate the exit calldata for my liquidity position — owner is 0xAbC123...def, token is 0xToken456...789, fee is 30 bps, pool fee tier is 3000, I'm putting in 1000000000000000000 (1 ETH worth), and I need a minimum output of 950000000.","exampleUseCases":[{"title":"Slippage-protected DeFi position exit","prompt":"Build me the exit calldata for my DeFi position: owner 0xOwner111...aaa, token 0xTokenDai...bbb, feeBps 50, poolFee 500, amountIn 5000000000000000000, and I want a minimum output of 4900000000 to protect against slippage."},{"title":"Automated stop-loss exit trigger","prompt":"I need to automate a stop-loss exit on KeeperHub — generate the calldata to exit my position with owner 0xOwner222...ccc, token 0xUSDC...ddd, feeBps 10, poolFee 3000, amountIn 2000000000, and minimum out of 1980000000 so it won't execute if the price drops too far."},{"title":"Portfolio rebalance exit transaction","prompt":"Help me rebalance my portfolio by exiting this position: owner address 0xPortfolio333...eee, ERC-20 token 0xWETH...fff, fee basis points 20, pool fee 10000, amount in 3000000000000000000, minimum acceptable output 2950000000."}],"resultDescription":"Returns a calldata object containing the encoded transaction data (data field as hex), the target contract address (to field), the transaction type ('calldata'), and the ETH value to send (value field, typically '0' for ERC-20 swaps). This calldata can be submitted directly to an Ethereum-compatible blockchain to execute the guarded exit swap.","failureModes":["Missing required fields (owner, token, feeBps, poolFee, amountIn, amountOutMinimum) returns a 400 validation error","Invalid Ethereum address format for owner or token fields causes rejection","amountOutMinimum set too high may cause on-chain transaction revert when submitted","Pool fee tier not matching a supported tier (e.g. 100, 500, 3000, 10000) may result in incorrect calldata","Payment of 0.05 USDC via x402 protocol required; insufficient payment returns 402 error"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate exit calldata for a DeFi liquidity position with built-in slippage protection (minimum output guard) on a specific pool fee tier. It is ideal for automated stop-loss triggers, portfolio rebalancing workflows, or any agent-driven DeFi exit automation built on the KeeperHub platform. Prefer this over manually encoding swap calldata when you want a structured, fee-aware exit path with guaranteed minimum output enforcement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:30:18.900Z","isFirstParty":false,"canonicalSlug":"keeperhub-exit-guard-exit-workflow-c7ed422c"}