manage_approvals
Audit and revoke risky token approvals for your wallet to enhance security by identifying and managing smart contract permissions on blockchain networks.
Instructions
Manage token approvals for a wallet.
Args: wallet_address: The wallet address to check chain: Blockchain network action: Action to perform. Options: list, revoke_risky
Returns: List of token approvals with risk assessment.
Price: $0.30
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_address | Yes | ||
| chain | No | ethereum | |
| action | No | list |
Implementation Reference
- coinrailz_mcp/__init__.py:543-564 (handler)The manage_approvals tool handler is registered as an MCP tool and calls the 'approval-manager' service with the provided wallet address, chain, and action.
@mcp.tool() async def manage_approvals(wallet_address: str, chain: str = "ethereum", action: str = "list") -> str: """ Manage token approvals for a wallet. Args: wallet_address: The wallet address to check chain: Blockchain network action: Action to perform. Options: list, revoke_risky Returns: List of token approvals with risk assessment. Price: $0.30 """ payload = { "walletAddress": wallet_address, "chain": chain, "action": action } result = await call_coinrailz_service("approval-manager", payload) return json.dumps(result, indent=2)