# build_deposit_tx

Build the transaction steps required to deposit tokens into an ATV vault. Returns an ordered array of transactions (approve then deposit) that must be sent in order.

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

## Facts

- Tool: `build_deposit_tx`
- Server: Atv (`aarna-ai/atv`) — https://policylayer.com/tools/aarna-ai-atv.md
- Homepage: https://github.com/aarna-ai/atv
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 4
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `userAddress` | string | no | EVM address of the depositor |
| `vaultAddress` | string | no | Vault contract address |
| `depositAmount` | string | no | Human-readable deposit amount, e.g. '100' for 100 USDC |
| `depositTokenAddress` | string | no | ERC20 token address to deposit |

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_deposit_tx",
    "arguments": {}
  }
}
```

## Why build_deposit_tx is rated High

This tool builds and prepares blockchain transactions (token approval + deposit) for execution. While it 'builds' rather than directly submits, it constructs executable transaction payloads that move user tokens into a vault. The action involves transferring asset ownership into a vault smart contract, which is a financial-adjacent operation.

From the tool's own definition: "Build the transaction steps required to deposit tokens into an ATV vault. Returns an ordered array of transactions (approve then deposit) that must be sent in order."

## Use case

AI agents invoke build_deposit_tx to trigger actions in Atv. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

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

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "build_deposit_tx": {
      "limits": [
        {
          "counter": "build_deposit_tx_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Atv (18)

- `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
- `build_withdraw_tx` — Financial — https://policylayer.com/tools/aarna-ai-atv/build-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
