# build_withdraw_tx

Build the transaction steps required to withdraw vault shares from an ATV vault and receive an output token.

Agent View of the PolicyLayer registry record for `build_withdraw_tx`. HTML page: https://policylayer.com/tools/aarna-ai-atv/build-withdraw-tx

## Facts

- Tool: `build_withdraw_tx`
- Server: Atv (`aarna-ai/atv`) — https://policylayer.com/tools/aarna-ai-atv.md
- Homepage: https://github.com/aarna-ai/atv
- Risk category: Financial (Critical risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 6
- Recommended policy verdict: Approval-gated

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `simulate` | string | no | Pass 'true' to include a gas estimate in the response |
| `slippage` | string | no | Slippage tolerance as a percentage, e.g. '0.5' |
| `userAddress` | string | no | EVM address of the withdrawer |
| `vaultAddress` | string | no | Vault contract address |
| `oTokenAddress` | string | no | Output token address to receive |
| `sharesToWithdraw` | string | no | Human-readable share amount to withdraw, e.g. '100' |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "build_withdraw_tx",
    "arguments": {}
  }
}
```

## Why build_withdraw_tx is rated Critical

This tool constructs transactions that move financial assets (vault shares) out of yield vaults and convert them to output tokens on Ethereum/Base. Withdrawing vault shares is a financial operation that commits to moving funds. Combined with the server context of 'tokenized yield vaults' and sibling tools like build_deposit_tx and build_stake_tx, this clearly falls in the Financial category.

From the tool's own definition: "'Build the transaction steps required to withdraw vault shares from an ATV vault and receive an output token'"

## Use case

AI agents use build_withdraw_tx to commit financial operations through Atv, usually the final step of a payment, billing, or trading workflow. A call moves real money.

## Recommended policy (PolicyLayer)

Verdict: **Approval-gated**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Atv:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "build_withdraw_tx": {
      "deny_if": [
        {
          "conditions": [],
          "on_deny": "Requires human approval."
        }
      ]
    }
  }
}
```

## Other tools on Atv (18)

- `build_deposit_tx` — Execute — https://policylayer.com/tools/aarna-ai-atv/build-deposit-tx.md
- `build_queue_withdraw_tx` — Execute — https://policylayer.com/tools/aarna-ai-atv/build-queue-withdraw-tx.md
- `build_stake_tx` — Execute — https://policylayer.com/tools/aarna-ai-atv/build-stake-tx.md
- `build_unqueue_withdraw_tx` — Execute — https://policylayer.com/tools/aarna-ai-atv/build-unqueue-withdraw-tx.md
- `build_unstake_tx` — Execute — https://policylayer.com/tools/aarna-ai-atv/build-unstake-tx.md
- `build_redeem_withdraw_tx` — Financial — https://policylayer.com/tools/aarna-ai-atv/build-redeem-withdraw-tx.md
- `get_deposit_status` — Read — https://policylayer.com/tools/aarna-ai-atv/get-deposit-status.md
- `get_historical_nav` — Read — https://policylayer.com/tools/aarna-ai-atv/get-historical-nav.md
- `get_queue_withdraw_status` — Read — https://policylayer.com/tools/aarna-ai-atv/get-queue-withdraw-status.md
- `get_total_tvl` — Read — https://policylayer.com/tools/aarna-ai-atv/get-total-tvl.md
- `get_user_investments` — Read — https://policylayer.com/tools/aarna-ai-atv/get-user-investments.md
- `get_vault` — Read — https://policylayer.com/tools/aarna-ai-atv/get-vault.md
- `get_vault_apy` — Read — https://policylayer.com/tools/aarna-ai-atv/get-vault-apy.md
- `get_vault_balance` — Read — https://policylayer.com/tools/aarna-ai-atv/get-vault-balance.md
- `get_vault_nav` — Read — https://policylayer.com/tools/aarna-ai-atv/get-vault-nav.md
- `get_vault_tvl` — Read — https://policylayer.com/tools/aarna-ai-atv/get-vault-tvl.md
- `get_withdraw_status` — Read — https://policylayer.com/tools/aarna-ai-atv/get-withdraw-status.md
- `list_vaults` — Read — https://policylayer.com/tools/aarna-ai-atv/list-vaults.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=aarna-ai-atv · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/aarna-ai-atv
