# build_stake_tx

Build the transaction steps to stake vault tokens into a timelock contract for boosted rewards. Returns an approve step (if needed) and a stake step.

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

## Facts

- Tool: `build_stake_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 |
| --- | --- | --- | --- |
| `stakeAmount` | string | no | Human-readable vault token amount to stake, e.g. '100' |
| `userAddress` | string | no | EVM address of the staker |
| `vaultAddress` | string | no | Vault contract address |
| `lockPeriodIndex` | string | no | 0-indexed lock period to select from the timelock contract (e.g. '0', '1', '2') |

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

## Why build_stake_tx is rated High

This tool constructs transactions that execute staking operations on Ethereum/Base, locking user assets into smart contracts. While not immediately destructive or moving funds between wallets (Financial category proper), it executes external operations whose consequences are determined by supplied arguments.

From the tool's own definition: "Tool builds transaction steps to stake vault tokens into a timelock contract. The phrase 'build the transaction steps' and 'stake step' indicate this triggers external blockchain operations with financial effects that depend on argument parameters (vault…"

## Use case

AI agents invoke build_stake_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_stake_tx": {
      "limits": [
        {
          "counter": "build_stake_tx_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

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