# approve_token_spending

Approve another address (like a DeFi protocol or exchange) to spend your ERC20 tokens. This is often required before interacting with DeFi protocols.

Agent View of the PolicyLayer registry record for `approve_token_spending`. HTML page: https://policylayer.com/tools/chulanpro5-evm-mcp-server/approve-token-spending

## Facts

- Tool: `approve_token_spending`
- Server: EVM MCP Server (`chulanpro5/evm-mcp-server`) — https://policylayer.com/tools/chulanpro5-evm-mcp-server.md
- Homepage: https://github.com/chulanpro5/evm-mcp-server
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

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

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

## Why approve_token_spending is rated Medium

This tool performs a Write operation—it creates or modifies data (ERC20 allowances) reversibly through blockchain transactions. While it doesn't directly move funds, it grants another address permission to transfer tokens, making it a critical precursor to financial operations.

From the tool's own definition: "The tool description states it 'Approve another address (like a DeFi protocol or exchange) to spend your ERC20 tokens.' This creates an on-chain transaction that modifies token spending allowances."

## Use case

AI agents use approve_token_spending to create or update resources in EVM MCP Server, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your EVM MCP Server environment.

## Recommended policy (PolicyLayer)

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

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "approve_token_spending": {
      "limits": [
        {
          "counter": "approve_token_spending_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on EVM MCP Server (35)

- `deploy_token` — Execute — https://policylayer.com/tools/chulanpro5-evm-mcp-server/deploy-token.md
- `enable_trading` — Execute — https://policylayer.com/tools/chulanpro5-evm-mcp-server/enable-trading.md
- `set_swap_and_liquify_enabled` — Execute — https://policylayer.com/tools/chulanpro5-evm-mcp-server/set-swap-and-liquify-enabled.md
- `write_contract` — Execute — https://policylayer.com/tools/chulanpro5-evm-mcp-server/write-contract.md
- `add_liquidity` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/add-liquidity.md
- `buy_usdt_from_wallet` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/buy-usdt-from-wallet.md
- `deploy_tax_token` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/deploy-tax-token.md
- `lock_lp_token` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/lock-lp-token.md
- `sell_usdt_from_wallet` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/sell-usdt-from-wallet.md
- `transfer_erc1155` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/transfer-erc1155.md
- `transfer_erc20` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/transfer-erc20.md
- `transfer_eth` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/transfer-eth.md
- `transfer_nft` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/transfer-nft.md
- `transfer_token` — Financial — https://policylayer.com/tools/chulanpro5-evm-mcp-server/transfer-token.md
- `check_nft_ownership` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/check-nft-ownership.md
- `estimate_gas` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/estimate-gas.md
- `get_address_from_private_key` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-address-from-private-key.md
- `get_balance` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-balance.md
- `get_block_by_number` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-block-by-number.md
- `get_chain_info` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-chain-info.md
- `get_erc1155_balance` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-erc1155-balance.md
- `get_erc1155_token_uri` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-erc1155-token-uri.md
- `get_erc20_balance` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-erc20-balance.md
- `get_latest_block` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-latest-block.md
- `get_nft_balance` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-nft-balance.md
- `get_nft_info` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-nft-info.md
- `get_supported_networks` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-supported-networks.md
- `get_token_balance` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-token-balance.md
- `get_token_balance_erc20` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-token-balance-erc20.md
- `get_token_info` — Read — https://policylayer.com/tools/chulanpro5-evm-mcp-server/get-token-info.md
- …and 5 more: https://policylayer.com/tools/chulanpro5-evm-mcp-server.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=chulanpro5-evm-mcp-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/chulanpro5-evm-mcp-server
