Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

check_wallet_drain

Read-onlyIdempotent

Check a wallet for token drains: detect transfers pulled without its signature and return a drained, review, or clean verdict for USDC/USDT over a selected lookback.

Instructions

chainpeek: Check a wallet for a drain: find tokens pulled out without its signature. For live approvals with revoke transactions use audit_token_approvals. Returns a verdict (drained | review | clean) for wallet over the last 24 hours by default (about 27 minutes on Base): each transfer out of USDC and USDT (or up to 5 tokens) is sent, authorized (EIP-3009, as x402 uses), wallet_code, pulled (someone else's transaction) or unknown, with the puller and its live allowance, the nonce before and after, and evidence. Drained: a pull to an address the wallet did not pay itself, or pulls of half of a token's holding. Review: other pulls, a balance that fell with an unmoved nonce, smart-account or EIP-7702 wallets. Gasless orders look like pulls. Bad input is a 422, a failed read a 502 (neither charged). Typically 2-10 s. Price: USD 0.002. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/wallet-drain-check-api.html

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": {
      "chain": "<chain>",
      "wallet": "<wallet>"
    },
    "name": "check_wallet_drain"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase or ethereum (the chains with built-in USDC and USDT here).
tokensNo1 to 5 tokens: USDC, USDT or contract addresses. Default: USDC and USDT.
walletYesThe wallet to check (0x + 40 hex).
lookback_sNoSeconds of history read (1-86,400; default 86,400, 24 hours), cut by block timestamps. Public nodes serve logs only about 8,000 blocks deep: about 27 minutes on Base today (the whole window on Ethereum); `history.from_time`, `history.seconds` and `history.complete` say what was read. Not with `lookback_blocks`.
lookback_blocksNoInstead of `lookback_s`: the latest blocks read, in one range (1-2,000; 2,000 is about 6.7 minutes on Base at 0.2 s and 6.7 hours on Ethereum).

Output Schema

NameRequiredDescriptionDefault
riskNo
chainNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
nonceNo
rulesNo
countsNo
limitsNo
tokensNo
walletNo
historyNo
reasonsNo
verdictNo
rpc_callsNo
transfersNo
wallet_codeNo
transfers_totalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so safety is covered; the description adds real value beyond that with error semantics (422 on bad input, 502 on failed read, neither charged), latency (2-10 s), price ($0.002), and a free tier of 10 reads per IP per UTC day. Its main self-disclosure is the noise profile — gasless orders look like pulls, and nonce/smart-account cases route to 'review' — though it does not say how to resolve an 'unknown' classification.

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

Conciseness3/5

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

Front-loading is good — purpose, then the sibling alternative, then verdict semantics. But the core sentence enumerating transfer categories ('is sent, authorized (EIP-3009, as x402 uses), wallet_code, pulled ... or unknown') is a dense run-on that is hard to parse, and pricing/docs/speed details crowd the same paragraph as the classification rules.

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?

An output schema exists, so return values need no explanation, yet the description still defines the three verdicts and their triggers, which is what an agent needs to act. Combined with error codes, latency, cost, rate limits, and docs, nothing material is missing for a read-only analysis tool with a non-obvious data window.

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 restates the 24-hour default and the up-to-5-token option that the schema already documents. It adds little parameter-specific meaning beyond noting that only USDC and USDT are covered by default, and the lookback truncation detail is already in the schema's lookback_s description.

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 ('Check a wallet for a drain') with a precise scope: tokens pulled out without the wallet's signature. It explicitly names the sibling audit_token_approvals and the condition that separates the two, so an agent can route correctly without opening either schema.

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?

Gives an explicit alternative ('For live approvals with revoke transactions use audit_token_approvals') tied to a distinguishing condition — drain detection versus approval revocation. It also establishes the default time window and the Base-specific truncation, which shapes when the answer is trustworthy.

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

Deploy Server

Other Tools