{"tools":[{"name":"token_price","description":"Get the current USD price of any cryptocurrency token","endpoint":"https:\/\/agentpay.tools\/tools\/token_price","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"symbol":{"type":"string","description":"Token symbol, e.g. BTC, ETH, SOL"}},"required":["symbol"]},"category":"data","uptime_pct":100,"total_calls":23,"active":true,"triggers":["price","how much is","what is btc","token value","crypto price","usd","market price","worth"],"use_when":"You need the current USD price, 24h change, or market cap of any cryptocurrency.","avoid_when":"you need volume, ATH or a pair quote \u2014 token_market_data; a one-call macro + crypto overview \u2014 market_snapshot; pool depth or slippage \u2014 orderbook_depth.","returns":"price_usd, change_24h_pct, market_cap_usd, coin_id","response_example":{"symbol":"ETH","price_usd":2069.73,"change_24h_pct":-4.04,"market_cap_usd":250330787714.19,"source":"coingecko"}},{"name":"gas_tracker","description":"Get current Ethereum gas prices (slow, standard, fast)","endpoint":"https:\/\/agentpay.tools\/tools\/gas_tracker","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{}},"category":"data","uptime_pct":100,"total_calls":7,"active":true,"triggers":["gas","gwei","transaction fee","ethereum fee","network congestion","gas price","eth fee"],"use_when":"You need to know current Ethereum gas prices before submitting a transaction or estimating costs.","avoid_when":"you need gas as part of a broader read \u2014 market_snapshot already includes standard gwei; only Ethereum mainnet gas is reported.","returns":"slow_gwei, standard_gwei, fast_gwei, base_fee_gwei, estimated confirmation times","response_example":{"slow_gwei":1.5,"standard_gwei":2,"fast_gwei":3,"base_fee_gwei":1.2,"source":"etherscan"}},{"name":"yield_scanner","description":"Find best DeFi yield opportunities across protocols for a given token","endpoint":"https:\/\/agentpay.tools\/tools\/yield_scanner","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"token":{"type":"string","description":"Token symbol to find yields for, e.g. 'ETH', 'USDC', 'BTC'"},"chain":{"type":"string","description":"Filter by chain: 'ethereum', 'base', 'arbitrum', 'polygon'. Leave empty for all chains.","default":""},"min_tvl":{"type":"number","description":"Minimum pool TVL in USD (default 1,000,000)","default":1000000}},"required":["token"]},"category":"defi","uptime_pct":100,"total_calls":0,"active":true,"triggers":["yield","apy","earn","interest","lending","staking","defi returns","best rate"],"use_when":"You need to find the best yield\/APY for a token across DeFi protocols.","avoid_when":"you need a protocol's total TVL rather than pool APYs \u2014 defi_tvl; risk_level is a heuristic, run token_security on the pool's token before depositing.","returns":"list of pools with protocol, apy, tvl_usd, chain, risk_level sorted by APY descending","response_example":{"token":"USDC","pools":[{"protocol":"morpho","apy":8.74,"tvl_usd":312000000,"chain":"Ethereum","risk_level":"low"},{"protocol":"aave-v3","apy":5.21,"tvl_usd":1840000000,"chain":"Ethereum","risk_level":"low"},{"protocol":"compound-v3","apy":4.87,"tvl_usd":920000000,"chain":"Ethereum","risk_level":"low"}],"source":"defillama"}},{"name":"open_interest","description":"Get total open interest in perpetual futures for any asset, with 1h and 24h change rates. Pairs with funding_rates to complete the derivatives picture \u2014 rising OI with high funding = overcrowded position.","endpoint":"https:\/\/agentpay.tools\/tools\/open_interest","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"asset":{"type":"string","description":"Token symbol, e.g. 'BTC', 'ETH', 'SOL'","default":"BTC"}}},"category":"defi","uptime_pct":100,"total_calls":14,"active":true,"triggers":["open interest","oi","long short ratio","futures positioning","perp oi","market positioning","leverage"],"use_when":"You need to know total open interest in perpetual futures and whether it's rising or falling. Combine with funding_rates for a full derivatives picture.","avoid_when":"you need the funding cost of holding a position \u2014 funding_rates; a single trade verdict \u2014 pre_trade_check.","returns":"total_oi_usd (sum of the venues listed in oi_venues), oi_change_1h_pct, oi_change_24h_pct, long_short_ratio (median across venues) with long_short_ratios per venue and long_short_spread, per-exchange breakdown","response_example":{"asset":"ETH","price_usd":2069.73,"total_oi_usd":8415777792,"oi_venues":["Binance"],"oi_change_1h_pct":1.2,"oi_change_24h_pct":12.4,"long_short_ratio":1.08,"long_short_ratios":{"Binance":1.08,"OKX":1.11,"Gate.io":1.02},"long_short_spread":0.09,"exchanges":[{"exchange":"Binance","oi_contracts":4066123.5,"oi_usd":8415777792,"oi_change_1h_pct":1.2,"oi_change_24h_pct":12.4,"long_short_ratio":1.08}],"source":"binance\/bybit\/okx + gate\/bitget (L\/S)","primary":"binance"}},{"name":"orderbook_depth","description":"Get real bid\/ask depth and slippage estimates at $10k, $50k, and $250k notional from Binance, Bybit and OKX. Use before sizing a position to know if you can execute without moving the market.","endpoint":"https:\/\/agentpay.tools\/tools\/orderbook_depth","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"asset":{"type":"string","description":"Token symbol, e.g. 'BTC', 'ETH', 'SOL'","default":"ETH"}},"required":["asset"]},"category":"data","uptime_pct":100,"total_calls":2,"active":true,"triggers":["slippage","orderbook","market depth","liquidity","can i sell","execution cost","bid ask","spread","fill price"],"use_when":"You need to estimate slippage before executing a large trade. Tells you how much a $10k, $50k, or $250k order will move the market.","avoid_when":"you need market cap or 24h volume \u2014 token_market_data; a full pre-trade verdict at your size \u2014 pre_trade_check. Centralised-exchange books (Binance\/Bybit\/OKX) only, not DEX pools.","returns":"best_bid, best_ask, spread_pct, depth with slippage_pct at $10k\/$50k\/$250k notional, per-exchange best prices","response_example":{"asset":"ETH","pair":"ETH\/USDT","best_ask":2071.5,"best_bid":2071.2,"spread_pct":0.0145,"depth":[{"notional_usd":10000,"slippage_pct":0.002,"executable":true},{"notional_usd":50000,"slippage_pct":0.008,"executable":true},{"notional_usd":250000,"slippage_pct":0.031,"executable":true}],"exchanges":[{"exchange":"Binance","best_ask":2071.5,"best_bid":2071.2},{"exchange":"Bybit","best_ask":2071.6,"best_bid":2071.1}],"source":"binance\/bybit\/okx"}},{"name":"wallet_balance","description":"Get the token balances for any Ethereum or Stellar wallet address","endpoint":"https:\/\/agentpay.tools\/tools\/wallet_balance","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"address":{"type":"string","description":"Wallet address (Ethereum 0x... or Stellar G...)"},"chain":{"type":"string","enum":["ethereum","stellar"],"description":"Blockchain to query"}},"required":["address","chain"]},"category":"data","uptime_pct":100,"total_calls":5,"active":true,"triggers":["wallet","balance","holdings","portfolio","address","how much does","tokens in wallet"],"use_when":"You need to look up the token holdings of an Ethereum or Stellar wallet address.","avoid_when":"you want a token's price or market data rather than one address's holdings \u2014 token_price \/ token_market_data; large transfers across many wallets \u2014 whale_activity. Ethereum addresses are 0x\u2026, Stellar addresses G\u2026; no other chains.","returns":"list of token balances (symbol, amount) for the given address","response_example":{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","chain":"ethereum","balances":[{"token":"ETH","amount":"1.234"},{"token":"USDC","contract":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","amount":"500.00"}]}},{"name":"fear_greed_index","description":"Crypto Fear & Greed Index (0=extreme fear, 100=extreme greed) with optional history","endpoint":"https:\/\/agentpay.tools\/tools\/fear_greed_index","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"limit":{"type":"integer","description":"Number of days of history to return (default 1, max 30)","default":1}}},"category":"data","uptime_pct":100,"total_calls":8,"active":true,"triggers":["fear","greed","sentiment","market mood","investor sentiment","bullish","bearish","panic","fomo"],"use_when":"You need to gauge overall crypto market sentiment or mood \u2014 whether the market is fearful or greedy.","avoid_when":"you want token-specific sentiment \u2014 crypto_news (per-token headlines) or funding_rates (leveraged positioning).","returns":"value (0\u2013100), value_classification (e.g. 'Greed'), optional history[]","response_example":{"value":10,"value_classification":"Extreme Fear","timestamp":1774137600,"source":"alternative.me"}},{"name":"crypto_news","description":"Latest crypto news and community sentiment from r\/CryptoCurrency for any token","endpoint":"https:\/\/agentpay.tools\/tools\/crypto_news","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"currencies":{"type":"string","description":"Comma-separated token symbols, e.g. 'BTC,ETH'","default":"BTC,ETH"},"filter":{"type":"string","enum":["hot","new","rising","top"],"description":"Feed sort order (default: hot)","default":"hot"}}},"category":"data","uptime_pct":100,"total_calls":11,"active":true,"triggers":["news","headlines","what's happening","latest","trending","community","reddit","narrative","buzz"],"use_when":"You need recent news headlines or community sentiment for one or more crypto tokens.","avoid_when":"you need general web news or documentation \u2014 web_search; a specific article's text \u2014 url_reader; a numeric sentiment gauge \u2014 fear_greed_index.","returns":"headlines[] with title, url, sentiment (bullish\/neutral\/bearish), score, published_at","response_example":{"currencies":"ETH","headlines":[{"title":"Ethereum devs confirm Pectra upgrade timeline","url":"https:\/\/reddit.com\/r\/CryptoCurrency\/...","sentiment":"bullish","score":1842,"published_at":"2026-03-22T08:14:00Z"},{"title":"ETH gas fees drop to yearly lows","url":"https:\/\/reddit.com\/r\/CryptoCurrency\/...","sentiment":"bullish","score":934,"published_at":"2026-03-22T06:31:00Z"}],"source":"reddit"}},{"name":"defi_tvl","description":"DeFi protocol Total Value Locked from DeFiLlama. Returns top 10 or a specific protocol.","endpoint":"https:\/\/agentpay.tools\/tools\/defi_tvl","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"protocol":{"type":"string","description":"Protocol name or slug, e.g. 'uniswap', 'aave', 'lido'. Leave empty for top 10.","default":""}}},"category":"defi","uptime_pct":100,"total_calls":8,"active":true,"triggers":["tvl","total value locked","defi","protocol","aave","uniswap","lido","compound","locked funds"],"use_when":"You need the Total Value Locked in a specific DeFi protocol or want to compare the top protocols by TVL.","avoid_when":"you want the best yield for a token \u2014 yield_scanner; protocol revenue or custom metrics \u2014 dune_query.","returns":"tvl, change_1h, change_1d, change_7d, chains[], category for the protocol (or top 10 list)","response_example":{"protocol":"aave","tvl":23800000000,"change_1h":0.12,"change_1d":-1.43,"change_7d":3.21,"chains":["Ethereum","Polygon","Avalanche","Base"],"category":"Lending","source":"defillama"}},{"name":"token_market_data","description":"Get market cap, 24h volume, ATH, and price change for any token. Note: does NOT return pool depth or slippage \u2014 for pre-trade liquidity estimates, use a dedicated orderbook tool.","endpoint":"https:\/\/agentpay.tools\/tools\/token_market_data","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"token_a":{"type":"string","description":"First token symbol"},"token_b":{"type":"string","description":"Second token symbol, e.g. USDC"}},"required":["token_a","token_b"]},"category":"data","uptime_pct":100,"total_calls":5,"active":true,"triggers":["liquidity","volume","dex","trading volume","slippage","market depth","uniswap","all-time high","ath"],"use_when":"You need 24h trading volume, market cap, or all-time high for a token pair on decentralized exchanges.","avoid_when":"you only need the spot price \u2014 token_price is lighter; you need pool depth or slippage \u2014 orderbook_depth.","returns":"volume_24h_usd, market_cap_usd, price_usd, ath_usd, price_change_24h_pct","response_example":{"token_a":"ETH","token_b":"USDC","price_usd":2071.45,"volume_24h_usd":312847293,"volume_change_24h_pct":-8.3,"market_cap_usd":249800000000,"ath_usd":4878.26,"price_change_24h_pct":-3.91,"source":"coingecko"}},{"name":"token_security","description":"Scan any token contract for honeypot, rug pull, and security risks","endpoint":"https:\/\/agentpay.tools\/tools\/token_security","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"contract_address":{"type":"string","description":"Token contract address (0x...)"},"chain":{"type":"string","enum":["ethereum","bsc"],"description":"Blockchain to query (default: ethereum)","default":"ethereum"}},"required":["contract_address"]},"category":"security","uptime_pct":100,"total_calls":6,"active":true,"triggers":["rug","honeypot","safe","scam","contract risk","token security","is this safe","audit"],"use_when":"You need to check if a token contract is safe before trading or investing.","avoid_when":"the asset is a native coin (BTC, ETH, SOL) with no contract \u2014 nothing to scan; you want liquidity or price \u2014 orderbook_depth \/ token_price. Ethereum and BSC contracts only.","returns":"risk_level, is_honeypot, buy_tax, sell_tax, holder_count, owner_address, is_mintable, can_take_back_ownership","response_example":{"contract_address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","chain":"ethereum","risk_level":"low","is_honeypot":false,"buy_tax":0,"sell_tax":0,"holder_count":842341,"is_mintable":false,"can_take_back_ownership":false,"source":"goplus"}},{"name":"dune_query","description":"Run any Dune Analytics query and return live onchain results by query ID. Use fast_only=True for live bots \u2014 returns cached result instantly or raises immediately, never blocks.","endpoint":"https:\/\/agentpay.tools\/tools\/dune_query","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"query_id":{"type":"integer","description":"Dune Analytics query ID (visible in the query URL)"},"query_parameters":{"type":"object","description":"Optional named parameters to pass to the Dune query","default":{}},"limit":{"type":"integer","description":"Maximum rows to return (default 25)","default":25},"fast_only":{"type":"boolean","description":"If True, return cached result immediately or raise \u2014 never execute a fresh query. Use for live bots where latency matters. Default: False.","default":false}},"required":["query_id"]},"category":"data","uptime_pct":100,"total_calls":19,"active":true,"triggers":["dune","onchain","sql","analytics","custom query","blockchain data","onchain metrics","protocol stats"],"use_when":"You need deep onchain analytics from a specific Dune query \u2014 protocol revenue, user counts, custom metrics.","avoid_when":"you have no Dune query ID \u2014 the other tools cover prices, derivatives, TVL and security without one; you need sub-second answers \u2014 set fast_only=true or use a cached tool.","returns":"rows[], columns[], row_count, generated_at from the Dune Analytics query result","response_example":{"query_id":3810512,"row_count":2,"columns":["protocol","revenue_usd"],"rows":[{"protocol":"Uniswap V3","revenue_usd":1243800},{"protocol":"Aave V3","revenue_usd":987200}],"generated_at":"2026-03-22T00:00:00Z","source":"dune"}},{"name":"url_reader","description":"Convert any URL to clean, LLM-ready markdown. Strips ads, nav, and boilerplate \u2014 returns just the content. No API key needed.","endpoint":"https:\/\/agentpay.tools\/tools\/url_reader","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"url":{"type":"string","description":"The URL to fetch and convert to markdown"}},"required":["url"]},"category":"data","uptime_pct":100,"total_calls":30,"active":true,"triggers":["read url","fetch page","scrape","extract content","read article","get page","url to text","website content"],"use_when":"You need to read the content of a web page or article and get clean, structured text for further processing.","avoid_when":"you do not have a URL yet \u2014 web_search returns pages with content; the page requires a login or renders only in a browser.","returns":"content (markdown), url, length, truncated flag","response_example":{"url":"https:\/\/example.com","content":"# Example Domain\n\nThis domain is for use in illustrative examples...","length":1256,"truncated":false,"source":"jina_reader"}},{"name":"web_search","description":"Search the web and return the top 5 results with their full content as clean markdown. Better than DIY because zero setup and results include page content, not just links.","endpoint":"https:\/\/agentpay.tools\/tools\/web_search","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"query":{"type":"string","description":"The search query"}},"required":["query"]},"category":"data","uptime_pct":100,"total_calls":13,"active":true,"triggers":["search","look up","find","google","web search","what is","latest news","who is","current"],"use_when":"You need to find current information on any topic \u2014 news, documentation, prices, events, or anything else on the web.","avoid_when":"you already have the URL \u2014 url_reader; you want crypto headlines with sentiment \u2014 crypto_news.","returns":"results[] with url, title, description, content; query; count","response_example":{"query":"ETH gas fees today","count":5,"results":[{"url":"https:\/\/etherscan.io\/gastracker","title":"Ethereum Gas Tracker","description":"Real-time Ethereum gas price tracker","content":"Current gas: 2 Gwei..."}],"source":"jina_search"}},{"name":"session_create","description":"Open a budget-capped agent session on AgentPay. Pay $0.01 USDC once \u2014 get a session_id, budget config, and gateway URL. Enforces a hard max_spend cap across all subsequent tool calls via the AgentPay SDK. The entry point for agents discovering AgentPay on Base Bazaar.","endpoint":"https:\/\/agentpay.tools\/v1\/session\/create","price_usdc":"0.01","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"agent_address":{"type":"string","description":"Your wallet address (Stellar G... or EVM 0x...)"},"max_spend":{"type":"string","description":"Hard budget cap in USDC for this session, e.g. '0.10'","default":"0.10"},"label":{"type":"string","description":"Optional human-readable label for this session"}},"required":["max_spend"]},"category":"session","uptime_pct":100,"total_calls":1,"active":true,"triggers":["start session","open session","register agent","budget cap","session create","agentpay session"],"use_when":"You want to start an AgentPay session with a hard spend cap and get a session_id for tracking.","avoid_when":"you only need a session for free tools \u2014 the SDK's quickstart() opens one at no cost; this call settles $0.01 on-chain.","returns":"session_id, max_spend, agent_address, gateway_url, tools_endpoint, created_at, receipt (tx_hash + network)","response_example":{"session_id":"f47ac10b-58cc-4372-a567-0e02b2c3d479","max_spend":"0.10","agent_address":"GBCVQCNFWPM3GDO4GPT4YEQ42ZHPY67QTJA3WN5ERQIKQDXKBX62SLNJ","label":null,"gateway_url":"https:\/\/agentpay.tools","tools_endpoint":"https:\/\/agentpay.tools\/tools","created_at":"2026-05-27T12:00:00Z","receipt":{"tx_hash":"0xabc...def","network":"base","amount_usdc":"0.01"},"sdk_hint":"Use `from agentpay import Session` to enforce the max_spend cap client-side."}},{"name":"funding_rates","description":"Get perpetual futures funding rates across Binance, Bybit, and OKX","endpoint":"https:\/\/agentpay.tools\/tools\/funding_rates","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"asset":{"type":"string","description":"Token symbol, e.g. 'BTC', 'ETH'. Leave empty for all major assets.","default":""}}},"category":"defi","uptime_pct":100,"total_calls":11,"active":true,"triggers":["funding rate","perp","perpetual","long","short","futures","leverage sentiment"],"use_when":"You need funding rates to gauge leveraged market sentiment or cost of holding a perp position.","avoid_when":"you need open interest or long\/short ratio \u2014 open_interest; one verdict combining funding, OI, slippage and security for a trade \u2014 pre_trade_check.","returns":"funding_rate_pct, annualized_rate_pct and a contrarian sentiment per exchange: bearish = longs are paying (crowded longs), bullish = shorts are paying (crowded shorts), neutral = near the 0.01% equilibrium","response_example":{"asset":"BTC","rates":[{"asset":"BTC","exchange":"Binance","funding_rate_pct":0.036,"interval_hours":8,"funding_rate_8h_pct":0.036,"annualized_rate_pct":39.42,"next_funding_time":1794844800000,"sentiment":"bearish"},{"asset":"BTC","exchange":"Bybit","funding_rate_pct":0.012,"interval_hours":8,"funding_rate_8h_pct":0.012,"annualized_rate_pct":13.14,"next_funding_time":1794844800000,"sentiment":"neutral"},{"asset":"BTC","exchange":"OKX","funding_rate_pct":-0.012,"interval_hours":8,"funding_rate_8h_pct":-0.012,"annualized_rate_pct":-13.14,"next_funding_time":1794844800000,"sentiment":"bullish"}],"count":3,"sources":["Binance","Bybit","OKX"]}},{"name":"market_snapshot","description":"Fed rate, inflation proxy, S&P 500, BTC, ETH, and gas in one call. Replaces three separate API integrations with a single normalized response \u2014 the only tool that gives you macro + crypto in one shot.","endpoint":"https:\/\/agentpay.tools\/tools\/market_snapshot","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{}},"category":"data","uptime_pct":100,"total_calls":9,"active":true,"triggers":["market overview","market snapshot","macro","big picture","market summary","overall market","sp500","s&p","bitcoin and stocks"],"use_when":"You need a combined macro + crypto market overview in one call: S&P 500, Treasury yield, BTC, ETH, and Ethereum gas.","avoid_when":"you need one asset in depth \u2014 token_price, gas_tracker or funding_rates; history or time series \u2014 dune_query.","returns":"sp500_price, sp500_change_pct, treasury_yield_10y, btc_price_usd, eth_price_usd, gas_standard_gwei, timestamp","response_example":{"sp500_price":5234.18,"sp500_change_pct":-0.42,"treasury_yield_10y":4.31,"btc_price_usd":67200,"eth_price_usd":3450,"gas_standard_gwei":5.2,"timestamp":"2026-05-26T12:00:00Z","source":"yahoo_finance+coingecko+etherscan"}},{"name":"pre_trade_check","description":"One-call pre-trade sanity check: 'I want to long $X of SYMBOL \u2014 is now sane?' Combines live orderbook slippage at YOUR size, cross-exchange funding (carry cost), open-interest crowding, and contract security (GoPlus) into a single ok\/caution\/avoid verdict with a per-factor breakdown. Major ERC-20 addresses (LINK, UNI, ARB, OP, AAVE, PEPE, SHIB) resolve automatically; native assets (BTC, ETH, SOL, ...) report security n\/a; an unrecognized token without token_address reads 'unknown' and caps the verdict at caution \u2014 an unscreened contract can never read 'ok'. Replaces four API integrations and the judgment layer on top of them. Raw component data embedded so you can apply your own thresholds. Stacks tokens (STX, sBTC, USDCx, stSTX, ZEST, LEO, USDh, aeUSDC, stBTC) add the Bitflow DEX venue: price impact at YOUR size from a live route quote, the pools and bins the swap crosses, and their TVL; STX and sBTC keep their CEX perp legs, DEX-only tokens report funding\/OI n\/a and contract risk unscreened (no GoPlus coverage on Stacks).","endpoint":"https:\/\/agentpay.tools\/tools\/pre_trade_check","price_usdc":"0.01","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"symbol":{"type":"string","description":"Asset to check, e.g. 'ETH', 'BTC', 'SOL'"},"size_usd":{"type":"number","description":"Intended position size in USD (drives the slippage check)","default":10000},"side":{"type":"string","enum":["long","short"],"description":"Trade direction (funding carry is side-aware)","default":"long"},"venue":{"type":"string","enum":["auto","cex","bitflow"],"description":"Where the trade executes. auto (default): CEX books for majors, Bitflow for Stacks tokens, both for STX\/sBTC. bitflow: price the swap on Bitflow only; cex: skip Bitflow","default":"auto"},"token_address":{"type":"string","description":"Optional ERC-20 contract address for the GoPlus security scan. Auto-resolved for major tokens; required for a full verdict on tokens the resolver doesn't know (otherwise security reads 'unknown' and caps the verdict at caution)"}},"required":["symbol"]},"category":"trading","uptime_pct":100,"total_calls":5,"active":true,"triggers":["pre trade check","should I trade","is this trade sane","trade check","entry check","before I buy","slippage and funding","trade readiness"],"use_when":"An agent (or human) is about to enter a position and wants one verdict covering liquidity, carry, crowding, and security \u2014 instead of four raw feeds plus its own synthesis.","avoid_when":"you need a single raw factor \u2014 funding_rates, open_interest, orderbook_depth or token_security are free; you are not about to size a position. This call settles $0.01 on-chain.","returns":"verdict (ok\/caution\/avoid), factors{liquidity,carry,crowding,security} each with level + reason, components{orderbook_depth,funding_rates,open_interest}, symbol, side, size_usd","response_example":{"symbol":"ETH","side":"long","size_usd":50000,"venue":"cex","verdict":"caution","factors":{"liquidity":{"level":"ok","slippage_pct":0.011,"bucket_usd":50000,"reason":"fills within 0.011% of best ask"},"carry":{"level":"caution","median_funding_pct":0.062,"annualized_pct":67.9,"reason":"longs paying elevated funding"},"crowding":{"level":"ok","long_short_ratio":1.4,"oi_change_24h_pct":3.2,"reason":"positioning unremarkable"},"security":{"level":"n\/a","reason":"ETH is a native chain asset \u2014 no token contract to screen"}},"not_checked":["security"]}},{"name":"verified_route","description":"Paid buyer-side trust oracle: 'I need X, budget $Y \u2014 which x402 tool is real?' Sweeps the WHOLE x402 marketplace across many queries (a single search shows only a slice), collapses sybil\/factory clusters (one wallet stamping many fake-distinct listings \u2192 one entry), ranks the genuinely-used survivors by real unique-payer usage, and returns ONE vetted recommendation with a ready-to-pay x402 challenge. The credit-bureau check an agent cannot do itself in one query \u2014 pay $0.01 to avoid paying a scam or a dead stub.","endpoint":"https:\/\/agentpay.tools\/tools\/verified_route","price_usdc":"0.01","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"need":{"type":"string","description":"What the agent needs, e.g. 'dex pair liquidity', 'crypto prices'"},"budget_usd":{"type":"number","description":"Max USDC the agent will pay the downstream tool per call","default":1},"chain":{"type":"string","description":"Optional chain filter: 'base', 'arbitrum', 'arbitrum-stack'. Empty = all chains.","default":""}},"required":["need"]},"category":"routing","uptime_pct":100,"total_calls":3,"active":true,"triggers":["verified route","which tool","is this tool real","vet tool","trustworthy x402","find a real tool","avoid scam tool","best x402 tool","trust score","vetted route"],"use_when":"An agent is about to pay an unknown x402 tool and wants the real, used, non-sybil one under budget \u2014 not just the cheapest.","avoid_when":"you already know which AgentPay tool you need \u2014 call it directly; you only want a free preview of the marketplace ranking \u2014 the MCP's free preview (verified_route_preview on the remote server). This call settles $0.01 on-chain.","returns":"recommendation (with ready_to_pay), survivors[] (each with typed evidence[]), catalog{scanned, real_providers, sybil_collapsed, biggest_factory}, vetting summary","response_example":{"need":"dex pair liquidity","chain":null,"budget_usd":"1","recommendation":{"name":"Otto AI","url":"https:\/\/otto.example\/dex","price_usd":"0.001","network":"eip155:8453","pay_to":"0x0e84ddedaae6a7","payers30d":200,"calls30d":3246,"quality":3851,"flags":[],"evidence":[{"type":"delivery","source":"agentpay-prober","metric":"delivery_rate","value":1,"n":12,"observed_at":"2026-09-30T13:05:00Z","ref":"\/s\/otto-example-dex-1a2b3c"},{"type":"third-party","source":"coinbase-bazaar","metric":"unique_payers_30d","value":200,"observed_at":"2026-10-01T12:00:00Z","ref":null}],"ready_to_pay":{"url":"https:\/\/otto.example\/dex","network":"eip155:8453","price_usd":"0.001","accepts":{"scheme":"exact","network":"eip155:8453"}}},"survivors":[],"catalog":{"scanned":117,"after_vetting":114,"real_providers":41,"unique_wallets":38,"sybil_collapsed":73,"biggest_factory":{"pay_to":"0x2bb72231eed3","listings":72}},"vetting":"swept 17 queries \u2192 117 listings \u2192 collapsed 73 sybil listings \u2192 41 real providers"}},{"name":"whale_activity","description":"Detect recent large wallet movements for a token (whale tracking)","endpoint":"https:\/\/agentpay.tools\/tools\/whale_activity","price_usdc":"0.000","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"token":{"type":"string","description":"Token symbol to track"},"min_usd":{"type":"number","description":"Minimum transaction size in USD","default":100000}},"required":["token"]},"category":"monitoring","uptime_pct":100,"total_calls":1,"active":true,"triggers":["whale","large transfer","big move","institutional","smart money","accumulation","dump","sell-off"],"use_when":"You need to detect large token transfers that may signal institutional moves, accumulation, or sell-offs.","avoid_when":"you need one address's holdings \u2014 wallet_balance; exchange order-book size rather than on-chain transfers \u2014 orderbook_depth. Ethereum ERC-20 transfers only.","returns":"large_transfers[] with from, to (full addresses), amount, usd_value, minutes_ago, tx_hash; total_volume_usd","response_example":{"token":"USDC","large_transfers":[{"from":"0xabababababababababababababababababababab","to":"0xcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd","amount":5000000,"usd_value":5000000,"minutes_ago":12,"tx_hash":"0x9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f9f"},{"from":"0x1111111111111111111111111111111111111111","to":"0x2222222222222222222222222222222222222222","amount":2500000,"usd_value":2500000,"minutes_ago":34,"tx_hash":"0x7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a"}],"total_volume_usd":7500000,"source":"etherscan"}},{"name":"funding_spread","description":"Cross-venue perp funding divergence for one asset \u2014 the basis\/carry read, not the raw rates. Reads Binance, Bybit, OKX, Gate.io, Bitget, Hyperliquid, dYdX, MEXC and KuCoin in parallel, normalises every rate to a per-8h figure (hourly venues scaled), and returns the spread (max minus min, cheapest and dearest venue, deviation from the median), its percentile against the last 7 days of cross-venue spreads, a plain-English read, and \u2014 given notional_usd \u2014 a carry estimate (per 8h \/ day \/ 30d) net of an assumed taker fee with the breakeven holding time. Venues that fail to answer are named in venues_unavailable; the spread is computed over the ones that did.","endpoint":"https:\/\/agentpay.tools\/tools\/funding_spread","price_usdc":"0.01","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{"symbol":{"type":"string","description":"Perp underlying, e.g. 'BTC', 'ETH', 'SOL'"},"notional_usd":{"type":"number","description":"Optional position size per leg in USD \u2014 adds carry_estimate (long the cheapest venue, short the dearest)"}},"required":["symbol"]},"category":"trading","uptime_pct":100,"total_calls":0,"active":true,"triggers":["funding spread","funding arbitrage","basis trade","carry trade","cross-exchange funding","funding divergence","which venue pays funding","cheapest funding"],"use_when":"An agent wants to know whether funding on one venue is out of line with the others for the same perp \u2014 to pick the cheaper venue for a position, or to size a long\/short carry across venues.","avoid_when":"you only need one venue's current funding \u2014 funding_rates is free; you want a trade verdict for one venue \u2014 pre_trade_check. This call settles $0.01 on-chain.","returns":"asset, as_of, venues[{venue, rate_8h_pct, rate_annualized_pct, raw_rate_pct, interval_hours, next_funding_time}] sorted cheapest first, spread{pct_8h, bps_8h, annualized_pct, median_8h_pct, max_deviation_from_median_pct, cheapest, dearest}, history{days, buckets, spread_pct_8h_p50\/p90\/max, current_percentile}, carry_estimate{per_8h_usd, per_day_usd, per_30d_usd, taker_fees_round_trip_usd, breakeven_hours, assumptions} | null, read, venues_unavailable{venue: reason}","response_example":{"asset":"ETH","as_of":"2026-11-05T12:41:00+00:00","venues":[{"venue":"okx","rate_8h_pct":0.01,"rate_annualized_pct":10.95,"raw_rate_pct":0.01,"interval_hours":8,"next_funding_time":1793923200000},{"venue":"hyperliquid","rate_8h_pct":0.01,"rate_annualized_pct":10.95,"raw_rate_pct":0.00125,"interval_hours":1,"next_funding_time":1793883600000},{"venue":"dydx","rate_8h_pct":0.039,"rate_annualized_pct":42.7,"raw_rate_pct":0.004875,"interval_hours":1,"next_funding_time":1793883600000}],"spread":{"pct_8h":0.029,"bps_8h":2.9,"annualized_pct":31.75,"median_8h_pct":0.01,"max_deviation_from_median_pct":0.029,"cheapest":"okx","dearest":"dydx"},"history":{"days":7,"buckets":22,"venues_with_history":["dydx","hyperliquid","okx"],"spread_pct_8h_p50":0.0125,"spread_pct_8h_p90":0.04242,"spread_pct_8h_max":0.05698,"current_percentile":77},"carry_estimate":{"notional_usd":10000,"long_on":"okx","short_on":"dydx","per_8h_usd":2.9,"per_day_usd":8.7,"per_30d_usd":261,"taker_fees_round_trip_usd":20,"breakeven_hours":55.2,"assumptions":"taker 0.05% per leg on both venues, open and close; spread held constant; no slippage, no basis move"},"read":"ETH funding 0.0390%\/8h on dydx vs 0.0100% on okx \u2014 2.9 bps\/8h, 77th percentile of the last 7 days (7 of 9 venues answered)","venues_unavailable":{"binance":"geo-blocked (451)","bybit":"geo-blocked (403)"}}},{"name":"sbtc_peg","description":"The sBTC peg as an agent-readable feed \u2014 the one dataset only Stacks state can answer. Live sBTC supply (and share of the peg cap), peg-in and peg-out flows for 24h and 7d (sats, counts, unique recipients, net), in-flight bridge requests (pending and accepted deposits with the oldest pending age, pending withdrawals, 24h failures), the last peg events with Bitcoin txids, the signer set and signature threshold, and the rolling withdrawal cap with its current headroom. Read from the sBTC token and registry contracts and the bridge API (Emily); a source that fails degrades to null plus a note. Signer liveness is not public and is reported as null \u2014 the pending ages and withdrawal headroom are the proxies.","endpoint":"https:\/\/agentpay.tools\/tools\/sbtc_peg","price_usdc":"0.01","developer_address":"GB7THTEVT2T7CZQ5TFUOIQSI32XCJ7BHWS35OBTAI2V4FNL7BXZZ2GM2","parameters":{"type":"object","properties":{},"required":[]},"category":"data","uptime_pct":100,"total_calls":0,"active":true,"triggers":["sbtc peg","sbtc supply","peg in","peg out","sbtc bridge","sbtc signers","bitcoin on stacks","sbtc withdrawals"],"use_when":"An agent wants the state of the sBTC peg before moving BTC onto or off Stacks, sizing against the withdrawal cap, or reading Bitcoin-capital flow into Stacks as a signal.","avoid_when":"you need the sBTC price or market data \u2014 token_price \/ token_market_data are free; you need a swap quote \u2014 pre_trade_check prices Bitflow. This call settles $0.01 on-chain.","returns":"asset, contract, network, as_of{time, stacks_height, bitcoin_height}, supply{sats, btc, peg_cap_sats, pct_of_cap}, flows{24h, 7d}{peg_in_sats, peg_in_count, peg_in_unique_recipients, peg_out_sats, peg_out_count, net_sats, from_stacks_height, complete}, in_flight{deposits_pending, deposits_accepted, oldest_pending_deposit_age_hours, withdrawals_pending, withdrawals_accepted, deposits_failed_24h, withdrawals_failed_24h}, last_events[{type, sats, stacks_height, bitcoin_txid, recipient|sender}], signers{count, signature_threshold, aggregate_pubkey, limits{peg_cap_sats, per_deposit_minimum_sats, per_withdrawal_cap_sats, rolling_withdrawal_cap_sats, rolling_window_blocks, available_to_withdraw_sats, withdrawal_headroom_pct, throttle_mode}, liveness, note}, read, sources, notes[]","response_example":{"asset":"sBTC","contract":"SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token","network":"stacks-mainnet","as_of":{"time":"2026-11-05T13:16:06+00:00","stacks_height":9418770,"bitcoin_height":974675},"supply":{"sats":248402294199,"btc":2484.02294199,"peg_cap_sats":2100000000000000,"pct_of_cap":0.0118},"flows":{"24h":{"peg_in_sats":349000521,"peg_in_count":870,"peg_in_unique_recipients":11,"peg_out_sats":172451573,"peg_out_count":15,"net_sats":176548948,"from_stacks_height":9411041,"complete":true},"7d":{"peg_in_sats":1093108934,"peg_in_count":5324,"peg_in_unique_recipients":39,"peg_out_sats":790710098,"peg_out_count":110,"net_sats":302398836,"from_stacks_height":9359229,"complete":true}},"in_flight":{"deposits_pending":10,"deposits_accepted":16,"oldest_pending_deposit_age_hours":50,"withdrawals_pending":0,"withdrawals_accepted":3,"deposits_failed_24h":0,"withdrawals_failed_24h":1},"last_events":[{"type":"peg_in","sats":85000,"stacks_height":9418744,"bitcoin_txid":"62acd3f2cee3b1bb0ba547de0d1fc32253bf69e79b63cf19f9e055dc97f741db","recipient":"SP000000000000000000002Q6VF78.pox-5"}],"signers":{"count":11,"signature_threshold":8,"aggregate_pubkey":"0x02d99ad0f0111a7e9aaa2ed22940efec98db0ece9b9475e61e1eec65a6e7f3af69","limits":{"peg_cap_sats":2100000000000000,"per_deposit_minimum_sats":10000,"per_withdrawal_cap_sats":5100000000,"rolling_withdrawal_cap_sats":15100000000,"rolling_window_blocks":150,"available_to_withdraw_sats":14786411900,"withdrawal_headroom_pct":97.9,"throttle_mode":null},"liveness":null,"note":"signer liveness is not published; the observable proxies are pending\/accepted deposit ages and the rolling withdrawal headroom"},"read":"sBTC supply 2484.02 BTC; 24h net +1.7655 BTC (870 in \/ 15 out); 7d net +3.0240 BTC (5324 in \/ 110 out); 10 deposits pending (oldest 50.0h); 8-of-11 signers; withdrawal headroom 97.9%","notes":[]}}],"count":22}