Skip to main content
Glama
Baneado98

approval-guardian

by Baneado98

check_approvals

Audit a wallet's active ERC-20 token approvals to identify drain risk and prioritize which approvals to revoke with ready-to-sign calldata.

Instructions

Audit a wallet's ACTIVE ERC-20 token approvals (allowances) for drain risk — the #1 way DeFi wallets get emptied. Pulls every Approval event the wallet ever emitted, reads the LIVE allowance for each (token, spender) pair, classifies the spender (EOA / unknown contract / upgradeable proxy / known router) and returns a prioritized CLEAN / REVIEW / AT_RISK verdict listing exactly which approvals to revoke first — with the approve(spender,0) revoke calldata ready to sign. Read-only; never moves funds, never holds a key. Use this before/after a wallet interacts with unfamiliar dApps, when a user fears a drainer, or to harden any wallet. Chains: ethereum, base, bsc, polygon, arbitrum.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain: ethereum, base, bsc, polygon or arbitrum.
walletYesThe wallet address to audit (0x...).
deepNoIf true, scan full on-chain history (slower) instead of just the recent window.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description fully bears the burden. It explicitly states the tool is read-only, never moves funds, and never holds a key, and describes its operation in detail (pulling history, reading live allowances, classifying).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is somewhat lengthy but every sentence adds value. It front-loads the core purpose and includes necessary detail. Minor redundancy could be trimmed, but overall it is well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description adequately explains the output format (prioritized verdict with revoke calldata). It also lists supported chains and explains the deep parameter's effect, making the tool's behavior fully understandable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the description adds no new parameter information beyond what's in the schema. The explanation of each parameter is already present in the schema, meeting the baseline for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool audits ERC-20 token approvals for drain risk, specifying it pulls Approval events, reads live allowances, classifies spenders, and returns a verdict. It distinguishes itself from the sibling revoke_plan by focusing on audit rather than execution.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear usage scenarios: before/after interacting with unfamiliar dApps, when a user fears a drainer, or to harden any wallet. It does not explicitly mention when not to use, but the context is well implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Baneado98/approval-guardian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server