Skip to main content
Glama

debank_get_user_approvals

Check which contracts have permission to spend your tokens or NFTs on any blockchain. Identify security risks from high approval exposure.

Instructions

Get user's token/NFT approvals and authorizations from DeBank.

Args: address: User's wallet address (required) chain_id: Blockchain ID (required) approval_type: "token" or "nft" (default: "token")

Returns: For tokens: Array of authorized tokens with spender info and exposure values For NFTs: Object with tokens, contracts, and total approved amounts

Security Note: This shows which contracts have permission to spend user's assets. High exposure values indicate security risk.

Examples: - Token approvals: debank_get_user_approvals(address="0x...", chain_id="eth") - NFT approvals: debank_get_user_approvals(address="0x...", chain_id="eth", approval_type="nft")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYes
chain_idYes
approval_typeNotoken

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses returns (arrays/objects), mentions security risk, and implies read-only behavior. It could add more about rate limits or authentication, but adequately covers behavioral traits.

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

Conciseness5/5

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

The description is front-loaded with purpose, structured into Args, Returns, Security Note, and Examples. Every sentence is informative and earns its place. No wasted words.

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?

The description covers both token and NFT cases, provides security context, and includes examples. Given the output schema exists and the tool has 3 params (2 required, 1 enum), the description is complete enough for effective use.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It explains address, chain_id (with example 'eth'), and approval_type with default. It also describes return differences for token vs NFT. Some details like valid chain_id values are omitted, but overall adds significant meaning.

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 it gets user's token/NFT approvals, using specific verbs and resources. It distinguishes from sibling tools like debank_get_user_tokens (balances) and debank_get_user_nfts (NFTs owned) by focusing on approvals and authorizations.

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

Usage Guidelines3/5

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

The description provides context (checking approvals) and examples, but does not explicitly state when to use this tool versus alternatives or when not to use it. It implies usage but lacks direct guidance.

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/caiovicentino/debank-mcp-server'

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