Skip to main content
Glama

ChainGuard Web3 Security & DeFi MCP

scan_evm_dust_and_hygiene

Read-onlyIdempotent

Scan an EVM wallet across up to 8 chains (base, arbitrum, optimism, polygon, ethereum, bsc, linea, avalanche) to discover all ERC-20 token holdings priced in USD, identify sweepable non-stablecoin dust tokens, and summarize open unlimited router approvals. Read-only, zero-connect multi-chain portfolio lookup with unlimited free calls. Returns JSON with address, total_sweepable_usd, stable_balances_usd, per-token holdings (token_address, symbol, amount_raw, usd_value, network), and approval_risks. Use this tool to discover token balances and amount_raw before calling build_evm_dust_to_usdt_sweep, build_cross_chain_consolidation, or build_erc20_approval_revoke.

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": "scan_evm_dust_and_hygiene"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes42-character hexadecimal EVM wallet address (`0x...`) to scan for ERC-20 dust balances and open router allowances.
networksNoComma-separated list of EVM networks to scan (choose from `base`, `arbitrum`, `optimism`, `polygon`, `ethereum`, `bsc`, `linea`, `avalanche`).base,arbitrum,optimism,polygon

Output Schema

NameRequiredDescriptionDefault
addressYes
stable_balances_usdNo
total_sweepable_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / address / description
      Added value: +"42-character hexadecimal EVM wallet address (`0x...`) to scan for ERC-20 dust balances and open router allowances."
    • addedInput schema / properties / networks / description
      Added value: +"Comma-separated list of EVM networks to scan (choose from `base`, `arbitrum`, `optimism`, `polygon`, `ethereum`, `bsc`, `linea`, `avalanche`)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "address": {
      +      "type": "string"
      +    },
      +    "stable_balances_usd": {
      +      "type": "number"
      +    },
      +    "total_sweepable_usd": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "address",
      +    "total_sweepable_usd"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is largely covered. The description still adds non-obvious behavior: zero-connect (no wallet signature needed) and unlimited free calls, which is the kind of cost/rate-limit context annotations cannot express. It stops short of stating per-chain failure behavior or latency across 8 networks.

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?

Three sentences, front-loaded with the core action and scope, followed by behavioral guarantees and then routing. The middle sentence enumerating return fields (`address`, `total_sweepable_usd`, `holdings`, etc.) is partly redundant given an output schema exists, which costs a point but does not obscure the key information.

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?

With an output schema, full parameter coverage, and rich annotations, the description's remaining burden is purpose, prerequisites, and behavioral posture — all present. An agent has everything needed to decide to call this first in a dust-sweep workflow and to pass a valid address and network list.

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 description coverage is 100%, so both `address` and `networks` are already documented, including the default network list and the valid chain choices. The description's chain enumeration and 'up to 8 chains' phrasing restate the schema rather than adding format, validation, or edge-case meaning. Baseline 3 applies.

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?

Opens with a specific verb and resource ('Scan an EVM wallet across up to 8 chains') and enumerates the three distinct outputs: USD-priced ERC-20 holdings, sweepable non-stablecoin dust, and open unlimited router approvals. That scope cleanly separates it from the sibling build_* tools, which construct transactions rather than read state.

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 final sentence gives explicit routing: use this to discover balances and `amount_raw` *before* calling `build_evm_dust_to_usdt_sweep`, `build_cross_chain_consolidation`, or `build_erc20_approval_revoke`. That is a concrete prerequisite relationship to three named siblings, not an inferred one.

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.