Skip to main content
Glama

Trace fund flow

trace_funds
Read-onlyIdempotent

Follow fund flows from a Solana wallet forward or backward up to N hops and across bridges to map where money went or came from, including sinks and circular laundering paths.

Instructions

Breadth-first fund-flow graph from a wallet, forwards (where money went) or backwards (where money came from), up to N hops. Returns nodes, weighted edges, terminal sinks and detected circular flows. The core tool for following stolen or laundered funds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
caseNoSave the result into this case file (created if missing) so later work and exports can use it
hopsNo
mintNoRestrict the trace to one token mint
addressYesBase58 Solana address
directionNoout = follow money leaving; in = follow money arrivingout
minAmountNoIgnore transfers below this UI amount — key for cutting dust noise
sinceUnixNo
usdAtTimeNoValue every edge in USD at the time of each transfer (DefiLlama historical prices)
branchFactorNoHow many highest-value children to expand per hop
followBridgesNoStop at Wormhole/deBridge/Mayan transactions and resolve the destination chain and address
maxEdgesShownNo
maxNodesShownNo
perNodeTransfersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0-development

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the safety bar is low. The description adds real behavioral value beyond that: breadth-first expansion, USD valuation via DefiLlama at transfer time, and resolution of bridge transactions to destination chain/address. It omits cost, latency, and result-size caps, which matter for a multi-hop graph expansion.

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 sentences, no filler. The mechanism and return shape are front-loaded before the use case, so the agent gets the what before the why.

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 13 parameters, no output schema, and mid coverage, the description does the important work of describing return contents and traversal semantics. It leaves node/edge sizing limits (maxNodesShown, maxEdgesShown, perNodeTransfers) unexplained and gives no guidance on choosing hops, which is the main tuning decision for this tool.

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 62%, a middle band where the schema carries most parameter meaning. The description adds concept-level semantics for direction ('forwards = where money went, backwards = where money came from') and hop depth, but says nothing about branchFactor, perNodeTransfers, or the case-save parameter. Baseline 3 fits.

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 ('Breadth-first fund-flow graph from a wallet') plus scope (forwards/backwards, up to N hops), which clearly separates it from siblings like get_transfers or find_counterparties. It also enumerates what comes back (nodes, weighted edges, terminal sinks, circular flows), so an agent knows the shape of the result without opening any schema.

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?

Names the primary use case ('following stolen or laundered funds'), which is real context, but never says when to prefer a sibling — e.g. get_transfers for a flat transfer list, follow_bridge for a single bridge hop, or analyze_wallet for general profiling. Usage is implied by the scenario rather than explicitly routed.

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