Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Wallet portfolio value: holdings valued in USD

wallet_portfolio
Read-only

USD value of a wallet on Base, Ethereum, Arbitrum or Optimism: native ETH plus major tokens (USDC and WETH everywhere, the common Base tokens on Base) and up to 20 tokens you add, each priced from its deepest Uniswap v3 pool, read live from the chain. Returns holdings, total and anything that could not be priced. Not a full token inventory. Use to check what a wallet is worth before trading, lending or paying. Example: address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045. Price $0.005/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "wallet_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoNetwork: base (default), eth, arb, op or polygon
tokensNoOptional extra comma-separated 0x token addresses (up to 20)
addressYes0x wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"Network: base (default), eth, arb or op"New value: +"Network: base (default), eth, arb, op or polygon"
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "base",
      -  "eth",
      -  "arb",
      -  "op"
      -]New value: +[
      +  "base",
      +  "eth",
      +  "arb",
      +  "op",
      +  "polygon"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this ('Reads or computes only and changes nothing'). It adds genuinely non-structured behavior: live on-chain pricing from deepest Uniswap v3 pools, partial results returned for unpriceable tokens, and a cost model ($0.005/call, 10 free, failed calls free, repeats charged) that explains why idempotentHint=false matters here.

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?

Dense single paragraph, front-loaded with the core verb and resource, then coverage limits, then return shape, then usage, then pricing. Every sentence carries information an agent needs; nothing is redundant.

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

Completeness4/5

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

With no output schema, the description compensates by stating the return shape ('holdings, total and anything that could not be priced'), the coverage limits, and the billing model, which is enough to call and interpret results. The only gap is the unresolved polygon-vs-four-chains discrepancy between prose and schema.

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 baseline is 3. The description adds useful semantics — 'up to 20 tokens you add' for tokens and the chain names in prose — but it lists only Base, Ethereum, Arbitrum and Optimism while the schema enum also permits 'polygon', leaving a caller unable to tell whether polygon is supported at a discount or excluded.

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?

States a specific verb-and-resource ('USD value of a wallet') plus the exact chains and token coverage, and explicitly bounds scope with 'Not a full token inventory' — an agent can distinguish this from wallet_balances or wallet_audit without opening a schema.

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?

Gives a concrete decision context ('before trading, lending or paying') and a negative bound ('Not a full token inventory'), which steers the agent away from using it as an exhaustive inventory. It stops short of naming a specific sibling tool to use instead for full inventory, so it is clear context rather than a full when/when-not routing rule.

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.

Resources