Skip to main content
Glama

Get Wallet Positions

get_wallet_positions
Read-only

Get a wallet's DeFi positions across all DeBank-supported chains and protocols. Returns protocol-level positions, asset/debt/net USD values, token lists, and optional all-chain net worth. Set include_token_balances=true to also return DeBank's complete cross-chain wallet token list. This covers substantially more protocols and chains than the block-accurate get_defi_positions tool. Use raw-RPC tools for liquidation, swap quotes, or other transaction-critical questions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_addressYesEVM wallet address (0x…)
include_net_worthNoInclude all-chain net worth and per-chain balances; disable to avoid that additional provider request.
include_token_balancesNoInclude DeBank's complete cross-chain token balance list; adds a billable provider request.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoPositions are sourced from DeBank Cloud portfolio analytics and may be stale; they are not block-accurate. staleness_seconds reports the oldest underlying position update. Use get_defi_positions or other raw-RPC tools for liquidation, quote, and transaction-critical checks.
errorsNo
positionsNo
provenanceYes
data_completeYes
chain_balancesNo
token_balancesNo
wallet_addressYes
include_net_worthYes
staleness_secondsNoMax age in seconds of the underlying DeBank position data (from per-item update_at), or None when unavailable.
total_net_worth_usdNo
include_token_balancesYes

TDQS

A4.5/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes safety, and the description adds meaningful context: it returns protocol-level positions, asset/debt/net values, optional all-chain net worth, and complete cross-chain token lists when requested. It also notes that include_token_balances adds a billable provider request (though part of that is in the schema). No contradiction with annotations.

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?

Three focused sentences deliver the core purpose, return contents, key parameter behavior, comparison to an alternative, and usage boundary. Every sentence earns its place with no redundancy or filler.

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 tool is moderately complex (cross-chain DeFi positions), but the description plus a rich input schema and output schema fully cover scope, return types, optional parameters, tool differentiation, and important exclusions. The agent has enough context to select and invoke this tool correctly.

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% with clear parameter descriptions, so the baseline is 3. The description reinforces include_token_balances behavior and mentions optional net worth, but adds little beyond what the schema already states. It does not provide unique semantic value for wallet_address beyond the schema.

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 gets a wallet's DeFi positions across all DeBank-supported chains and protocols. It explicitly distinguishes itself from the sibling get_defi_positions by noting it covers substantially more protocols and chains, making its purpose unambiguous.

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?

Provides explicit guidance: use this for broad DeFi position retrieval, and use raw-RPC tools for liquidation, swap quotes, or transaction-critical questions. It also names the alternative get_defi_positions and explains the difference, giving clear when-to-use and when-not-to-use context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools target distinct blockchain/DeFi resources and actions. A few pairs like get_lending_rates vs get_yield_rates and get_defi_positions vs get_liquidation_risk have overlapping boundaries, but detailed descriptions and explicit redundancy notes (e.g., get_eth_balance vs get_wallet_portfolio) reduce confusion.

Naming Consistency5/5

All tools follow a consistent snake_case verb_noun pattern (e.g., get_block, convert_currency, decode_transaction). The only minor deviations are noun-first names like http_fetch and web_search, but the style is uniform and predictable.

Tool Count2/5

At 27 tools, the server exceeds the 25-tool threshold for 'too many' and feels heavy. While the breadth of DeFi and crypto features justifies some size, the number is unwieldy for an agent to scan efficiently and could be consolidated (e.g., merging balance-related tools).

Completeness4/5

The tool surface covers a wide range of blockchain data: balances, prices, TVL, yields, DEX quotes, gas, block/transaction details, approvals, and DeFi positions. Gaps include lack of wallet transaction history and NFT support, but these are beyond the server's clear focus on read-only DeFi analytics.

Resources