# 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.

Guide: https://www.bitpont.com/help/ai-agents/validate-agent-workflows/

## 1. 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.

## 2. 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.

## 3. 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}}]}'
```

## Tools

- `checkWorkflow`
- `findTools`
- `describeTool`
- `checkInputs`
- `executionPlan`

## Further reading

- [Agent workflow examples](<https://www.bitpont.com/developers/agent-workflows/>)
- [Execution planning and permissions](<https://www.bitpont.com/developers/agent-execution/>)
- [Batch dependent DeFi reads through the API or MCP](<https://www.bitpont.com/help/ai-agents/batch-agent-reads/>)
- [Connect an AI agent to Bitpont with MCP](<https://www.bitpont.com/help/ai-agents/connect-bitpont-mcp/>)
- [Sign wallet actions and recover an agent order](<https://www.bitpont.com/help/ai-agents/wallet-signing-and-order-recovery/>)
