Getting started
Validate a multi-tool DeFi workflow before execution
Check up to twelve proposed tool calls together, identify field errors and signing requirements, and decide which steps your agent can run.
Workflow
Describe the calls you plan to make
Use findTools to select the actions, then give checkWorkflow an ordered calls array. Each entry needs a tool name and its proposed input object. The example checks a Solana token lookup and a SOL to USDC quote in one request. Neither underlying provider is contacted.
Read the result for each step
Check valid and inspect every steps entry. A path such as /input/inputMint identifies a field to repair. publicAccess tells you whether a hosted operation needs separate access. A local-stdio result with local_check_required directs you to validate that operation in the owner’s local adapter. Keep private signing material out of the plan.
Resolve live dependencies in order
A successful check validates field shapes. It leaves balances, liquidity, fee amounts and authorizations to the live calls. Fetch the first result, substitute its actual asset or quote ID where the next call needs it, and recheck the updated input. Only request a signature after the fresh review matches the intended trade.
Validate a token lookup and a swap quote together
curl -fsS "https://www.bitpont.com/api/v1/agent/workflow/check" \
-H 'Content-Type: application/json' \
-d '{"calls":[{"tool":"findAssets","input":{"q":"USDC","chainId":"solana:mainnet","limit":3}},{"tool":"solQuote","input":{"inputMint":"So11111111111111111111111111111111111111112","outputMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","amount":"10000000","slippageBps":50}}]}'