Skip to main content
Glama

get_token_allowances

Read-onlyIdempotent

Identify all active approvals for a token from your wallet on an EVM chain, showing each spender's live allowance and highlighting unlimited approvals for security audits and revocations.

Instructions

Enumerate every spender that currently holds a non-zero allowance over the wallet's balance of a specific ERC-20 token on a single EVM chain. Pulls Approval events from Etherscan's logs API filtered to the wallet as owner, dedups by spender (keeping the latest event per spender for provenance), then re-reads the LIVE allowance(owner, spender) for each via Multicall3 and drops anyone whose live value is 0 (revoked or fully consumed). Returns rows sorted by allowance descending, each carrying spender, optional spenderLabel (Aave V3 Pool / Uniswap V3 SwapRouter02 / Lido stETH / etc. resolved against the canonical CONTRACTS table), currentAllowance (raw bigint string), currentAllowanceFormatted (decimal-adjusted, or the literal string "unlimited"), isUnlimited (≥MAX_UINT256 − 0.01% — covers wallets that cap below MAX), and the lastApprovedBlock / lastApprovedTxHash / lastApprovedAt provenance. Top-level unlimitedCount and notes[] flag exposure ("the spender(s) can move your entire balance, including future top-ups; revoke via approve(spender, 0)"). Use this for security audits ("do I have any unrevoked unlimited approvals?"), pre-tx checks ("do I already have allowance for X?"), and revoke-cleanup workflows. v1 EVM-only (Ethereum / Arbitrum / Polygon / Base / Optimism). TRON deferred (different indexer surface); Solana intentionally out of scope (SPL delegation is per-account, not per-mint-per-owner — different question shape). Read-only; no signing, no broadcast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesEVM wallet address whose approvals you want to enumerate. The tool scans Approval events emitted by `token` where this wallet is the indexed `owner`, then re-reads the LIVE allowance for each spender.
tokenYesERC-20 contract address. Must be the actual token contract, not a wrapper or aToken. Native coins (ETH / MATIC) have no allowance concept and are intentionally not supported here.
chainNoWhich EVM chain to scan. Defaults to Ethereum. The same wallet may have different approvals on different chains — you'll need one call per chain to enumerate all of them.ethereum
Behavior5/5

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

The description details the entire process: pulling Approval events, deduplication, live re-read via Multicall3, dropping zero allowances, and sorting. It also states read-only nature, no signing/broadcast, and EVM-only restrictions. This goes well beyond the annotations (readOnlyHint, destructiveHint, idempotentHint) and adds rich behavioral context.

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 quite detailed but every sentence adds value. It is front-loaded with the core purpose and logically flows through process, usage, and scope. A slight reduction from 5 due to length; however, it remains well-organized and avoids redundancy.

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 the absence of an output schema, the description fully explains the return structure (fields like spenderLabel, currentAllowanceFormatted, unlimitedCount, notes). It also covers edge cases (unlimited detection) and limitations (TRON, Solana). For a moderately complex tool with 3 parameters, this is exceptionally complete.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds critical nuance: for 'wallet' it specifies the role as indexed owner, for 'token' it excludes wrappers and native coins, and for 'chain' it notes default and per-chain differences. Additionally, it describes the response fields (spender, allowance details, provenance), which are not in the input schema, greatly enhancing understanding.

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 enumerates spenders with non-zero allowance for a specific token on a single EVM chain. It uses specific verbs ('Enumerate', 'Pulls', 're-reads') and explicitly contrasts with sibling tools by mentioning Solana and TRON scope limitations.

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

Usage Guidelines5/5

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

The description explicitly says when to use it ('security audits, pre-tx checks, revoke-cleanup workflows') and when not to (native coins not supported, Solana out of scope). It also provides context on per-chain differences, guiding the agent to make one call per chain.

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/szhygulin/recon-crypto-mcp'

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