uvmcp tools reference

Every tool uvmcp serves, with its arguments, their types and an example call.

On this page

uvmcp serves 22 tools. Names, descriptions and argument types are exactly what your agent receives. uvsign passes them to the agent as uvmcp_* and adds its own signing tools; see How uvsign works.

Every tool also takes detail (boolean, default false): the full answer instead of the verdict, key numbers and warnings. Amounts are decimal strings in base units. A token argument takes an address or one of the listed symbols. In the examples, addresses, hashes and signatures are placeholders.

Before you sign

Your wallet

Market and chain

Trading and limits

Before you sign

send_check

Check a transfer before sending: address-poisoning look-alikes of past counterparties, zero-value spam in the sender's history, never-used or contract recipients, the token's own contract; simulates it and returns a verdict and the UNSIGNED transfer (not on danger unless allowRisky).

ArgumentTypeRequiredNotes
amountstringyesAmount in base units.decimal digits
fromstringyesSender.an address
tostringyesRecipient to check.an address
tokenstringyesToken sent. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
allowRiskybooleanBuild the transfer even on a danger verdict. Only if the user checked the address and insists.default false
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "send_check",
  "arguments": {
    "from": "0x000000000000000000000000000000000000dEaD",
    "to": "0x000000000000000000000000000000000000bEEF",
    "token": "USDC",
    "amount": "250000000",
    "chainId": 8453
  }
}

simulate_explain

Simulate any BNB Chain or Base transaction against current state and explain its effect on the sender in plain words: tokens and the native coin in/out, approvals set (incl. Permit2, unlimited), EIP-7702 delegations, failure reason, and warnings. Run it before signing anything.

ArgumentTypeRequiredNotes
fromstringyesSender of the transaction.an address
tostringyesRecipient / contract called.an address
authorizationListarray of objectsEIP-7702 authorizations, if the transaction carries any.0 to 4 items
datastringCall data, hex.hex bytes, default "0x"
gasintegerThe gas limit you will sign (default: estimated x1.2, as wallets do).21000 to 3000000
valuestringNative coin sent (BNB on 56, ETH on 8453), in wei: decimal or 0x-hex string.default "0"
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "simulate_explain",
  "arguments": {
    "from": "0x000000000000000000000000000000000000dEaD",
    "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "data": "0x095ea7b30000000000000000000000000dc5cf7aed22ac4d0d03ec4f28227a1bcc571261000000000000000000000000000000000000000000000000000000001dcd6500",
    "chainId": 8453
  }
}

preflight

Run every relevant check on one action (action.kind: swap, send or tx) and return ONE verdict (go / caution / stop) with reasons, the next step and what would be built.

ArgumentTypeRequiredNotes
actionobjectyesOne action; the field "kind" (required, not "type") picks it. {"kind": "swap", sellToken, buyToken, sellAmount, taker, slippageBps?} | {"kind": "send", from, to, token, amount} | {"kind": "tx", from, to, data, value}.

example call

{
  "name": "preflight",
  "arguments": {
    "action": {
      "kind": "swap",
      "sellToken": "USDC",
      "buyToken": "WETH",
      "sellAmount": "500000000",
      "taker": "0x000000000000000000000000000000000000dEaD"
    }
  }
}

token_check

Risk verdict (ok / caution / danger / unknown) for a BNB Chain or Base token from our measured dataset: honeypot, buy/sell tax, owner powers, liquidity, with reasons in plain words.

ArgumentTypeRequiredNotes
tokenstringyesToken to check. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "token_check",
  "arguments": {
    "token": "AERO",
    "chainId": 8453
  }
}

Your wallet

wallet_health

Read-only: a wallet's risky approvals (unlimited, to wallets, to unknown contracts), flagged tokens held and 7702 delegation, with the UNSIGNED revoke transactions.

ArgumentTypeRequiredNotes
addressstringyesThe wallet to check.an address
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "wallet_health",
  "arguments": {
    "address": "0x000000000000000000000000000000000000dEaD",
    "chainId": 8453
  }
}

approvals_list

List a wallet's live token allowances on BNB Chain or Base (ERC-20 and Permit2) for known spenders and the tokens/spenders you pass, riskiest first; flags unlimited ones and spenders that are not contracts.

ArgumentTypeRequiredNotes
ownerstringyesWallet whose allowances to list.an address
spendersarray of stringsExtra spender addresses to check.0 to 10 items
tokensarray of stringsExtra tokens to check (the wallet's holdings). Each an address or a symbol, as for token arguments.0 to 20 items
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "approvals_list",
  "arguments": {
    "owner": "0x000000000000000000000000000000000000dEaD",
    "chainId": 8453
  }
}

balances

Read-only: native and token balances of an address (the chain's known tokens plus the ones you pass), with USD values estimated from on-chain pools.

ArgumentTypeRequiredNotes
addressstringyesWallet or contract to read.an address
tokensarray of stringsExtra tokens to check besides the chain's known ones. Each an address or a symbol, as for token arguments.0 to 20 items
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "balances",
  "arguments": {
    "address": "0x000000000000000000000000000000000000dEaD",
    "chainId": 8453
  }
}

tx_history

Read-only: the newest token transfers in and out of an address, from a bounded log scan (the window is stated); flags zero-value spam.

ArgumentTypeRequiredNotes
addressstringyesWallet whose transfers to list.an address
limitintegerHow many of the newest transfers.1 to 50, default 20
tokensarray of stringsTokens to scan besides the known ones (10 in total). Each an address or a symbol, as for token arguments.0 to 10 items
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "tx_history",
  "arguments": {
    "address": "0x000000000000000000000000000000000000dEaD",
    "limit": 10,
    "chainId": 8453
  }
}

tx_explain

Read-only: explain a mined transaction from its receipt: success or failure, token moves, approvals, 7702 authorizations, fee paid, and warnings. Pass owner to word it from the user's side.

ArgumentTypeRequiredNotes
hashstringyesTransaction hash.32-byte hex
ownerstringOptional: the address the user owns. When it sent the transaction the effects read "you send / you receive"; otherwise "the sender".an address
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "tx_explain",
  "arguments": {
    "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "owner": "0x000000000000000000000000000000000000dEaD",
    "chainId": 8453
  }
}

tx_status

Wait (up to 20 s) for a transaction to be mined, report success or revert, and compare its real balance changes with the expected ones from simulate_explain or swap_build.

ArgumentTypeRequiredNotes
hashstringyesTransaction hash.32-byte hex
expectedobjectOptional: the simulate_explain answer for this transaction (its balanceChanges and transaction are compared).
waitSecsintegerHow long to wait for the receipt (then call again).0 to 20, default 15
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "tx_status",
  "arguments": {
    "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "waitSecs": 15,
    "chainId": 8453
  }
}

Market and chain

price

Read-only: on-chain price of tokenIn in tokenOut from the DEXes' own quoters, with the paths used and the spread between venues. Builds nothing.

ArgumentTypeRequiredNotes
tokenInstringyesToken sold. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
tokenOutstringyesToken bought. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
amountstringAmount of tokenIn in base units (default: one whole token).decimal digits
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "price",
  "arguments": {
    "tokenIn": "WETH",
    "tokenOut": "USDC",
    "chainId": 8453
  }
}

quote

Price a swap through UvRouter: amount out after fee, estimated price impact, route, and the buy token's risk verdict. On Base the route is the best one found on chain across Uniswap, PancakeSwap, Aerodrome and Slipstream pools. Read-only.

ArgumentTypeRequiredNotes
buyTokenstringyesToken to buy. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
sellAmountstringyesAmount to sell in base units (wei), as a decimal string.decimal digits
sellTokenstringyesToken to sell. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "quote",
  "arguments": {
    "sellToken": "USDC",
    "buyToken": "WETH",
    "sellAmount": "500000000",
    "chainId": 8453
  }
}

pool_info

Read-only: a pool (by address, or the deepest one of a token pair): venue, fee tier, balances, price, and how much it takes to move the price 1% and 2%.

ArgumentTypeRequiredNotes
poolstringA pool address.an address
tokenAstringOr a token pair: the deepest pool of tokenA/tokenB is read. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
tokenBstringThe other token of the pair. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "pool_info",
  "arguments": {
    "tokenA": "WETH",
    "tokenB": "USDC",
    "chainId": 8453
  }
}

token_info

Read-only: a token's name/symbol (as data), decimals, supply, proxy and owner, risk verdict, on-chain USD price and deepest pools.

ArgumentTypeRequiredNotes
tokenstringyesToken to read. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "token_info",
  "arguments": {
    "token": "cbBTC",
    "chainId": 8453
  }
}

address_info

Read-only: what an address is: wallet, EIP-7702-delegated wallet or contract, our label (routers, Permit2, exchanges, bridges), proxy, transactions sent, token risk if a token.

ArgumentTypeRequiredNotes
addressstringyesAny address.an address
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "address_info",
  "arguments": {
    "address": "0x0Dc5Cf7AeD22AC4D0D03eC4f28227A1BCC571261",
    "chainId": 8453
  }
}

gas

Read-only: current gas price, base and priority fee, and the cost of a typical swap in the native coin and USD.

ArgumentTypeRequiredNotes
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "gas",
  "arguments": {
    "chainId": 8453
  }
}

block

Read-only: the latest block's number, time and age.

ArgumentTypeRequiredNotes
chainId56 | 8453Chain id: 56 (BNB Chain) or 8453 (Base). Default: the server's default chain.

example call

{
  "name": "block",
  "arguments": {
    "chainId": 56
  }
}

Trading and limits

swap_build

Build UNSIGNED transactions for a UvRouter swap (exact approve if needed, then the swap), price-checked against pools (and Chainlink for WETH/USDC/cbBTC on Base), simulated, with a summary and both tokens' risk checks. Refuses honeypot or high-sell-tax buy tokens unless allowRisky. Base: pairs without Chainlink feeds are refused above $25 unless allowUnpriced. Output always goes to the taker.

ArgumentTypeRequiredNotes
buyTokenstringyesToken to buy. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
sellAmountstringyesAmount to sell in base units (wei), as a decimal string.decimal digits
sellTokenstringyesToken to sell. An address, or a symbol: BNB, WBNB, USDT, USDC, BTCB, ETH (Binance-Peg), CAKE on 56; ETH (native), WETH, USDC, cbBTC, USDbC, cbETH, wstETH, AERO on 8453; any other token by its address.
takerstringyesThe wallet that will sign and send; it pays and receives the output.an address
acceptUncheckedPricebooleanBuild even when the price is below the on-chain pool price or cannot be checked. Only when the user explicitly accepts an unchecked price.default false
allowRiskybooleanBuild even if the buy token is flagged as a honeypot or high sell tax. Only when the user explicitly accepts that risk.default false
allowUnpricedbooleanBase: a pair without Chainlink price feeds on both sides (anything but WETH/ETH, USDC, cbBTC) is built only up to $25 (unpriced_max_usd), because only the pools price it. Set true only when the user explicitly accepts a larger unpriced swap.default false
approval"erc20" | "permit2"erc20: an exact-amount approve tx then the swap tx. permit2: sign typed data instead (advanced).default "erc20"
delegationobjectOptional: a signed delegation from limits_build. Then taker is the agent key, the swap is for the delegator's account within its limits, and the result is one redeem transaction.
quoteobjectOptional: the quote tool's answer you are acting on; you are told if it went stale or the price moved.
slippageBpsintegerMax slippage in basis points (50 = 0.5%).0 to 300, default 50
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "swap_build",
  "arguments": {
    "sellToken": "USDC",
    "buyToken": "WETH",
    "sellAmount": "500000000",
    "taker": "0x000000000000000000000000000000000000dEaD",
    "slippageBps": 50,
    "chainId": 8453
  }
}

revoke_build

Build the UNSIGNED transaction that revokes one allowance: approve(spender, 0) on the token, or a Permit2 lockdown.

ArgumentTypeRequiredNotes
ownerstringyesWallet that granted the allowance (signs the revoke).an address
spenderstringyesSpender to revoke.an address
tokenstringyesToken address.an address
via"erc20" | "permit2"erc20: approve(spender, 0) on the token. permit2: Permit2 lockdown.default "erc20"
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "revoke_build",
  "arguments": {
    "owner": "0x000000000000000000000000000000000000dEaD",
    "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "spender": "0x0Dc5Cf7AeD22AC4D0D03eC4f28227A1BCC571261",
    "chainId": 8453
  }
}

limits_build

Build on-chain spending limits for an agent key: the user's account (EIP-7702) delegates single-hop UvRouter swaps with per-token budgets, buy tokens, recipients, expiry and max swaps (MetaMask Delegation Framework). On Base: an on-chain spend cap and a Chainlink price floor per swap. Returns what the user signs and what the agent can do, in plain words.

ArgumentTypeRequiredNotes
agentstringyesThe agent's key address, provided by the user or agent (we never create keys).an address
budgetsarray of objectsyesTokens the agent may sell and the total each (base units).1 to 5 items
buyTokensarray of stringsyesTokens the agent may buy (addresses or symbols; the native coin means its wrapped token). On Base: WETH, USDC or cbBTC (the tokens with a Chainlink price floor).1 to 10 items
ownerstringyesThe user's own account (an ordinary wallet): it signs the upgrade, the budgets and the delegation.an address
expiresInHoursintegerValidity, hours from now (max 90 days).1 to 2160, default 24
maxSwapsintegerCap on the number of swaps.1 to 100000, default 20
recipientsarray of stringsWho may receive swap output. Default: only the owner.0 to 3 items
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "limits_build",
  "arguments": {
    "owner": "0x000000000000000000000000000000000000dEaD",
    "agent": "0x000000000000000000000000000000000000bEEF",
    "budgets": [
      {
        "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amount": "100000000"
      }
    ],
    "buyTokens": [
      "WETH"
    ],
    "expiresInHours": 24,
    "maxSwaps": 20,
    "chainId": 8453
  }
}

limits_status

Read a delegation from limits_build back: state (active, expired, revoked, ...), each rule in plain words, budget left per token and swaps used.

ArgumentTypeRequiredNotes
delegationobjectyesThe delegation object (delegate, delegator, authority, caveats, salt, signature), signed or not.
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "limits_status",
  "arguments": {
    "delegation": {
      "delegate": "0x000000000000000000000000000000000000bEEF",
      "delegator": "0x000000000000000000000000000000000000dEaD",
      "authority": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
      "caveats": [],
      "salt": "0",
      "signature": "0x"
    },
    "chainId": 8453
  }
}

limits_revoke

Build the UNSIGNED transaction (from the delegator) that disables a delegation, plus optional ones zeroing its budgets.

ArgumentTypeRequiredNotes
delegationobjectyesThe delegation object (delegate, delegator, authority, caveats, salt, signature), signed or not.
chainId8453 | 56Chain id: 8453 (Base) or 56 (BNB Chain). Swaps, limits and transfer checks run only on the server's execution chain (the default); another chain is refused.

example call

{
  "name": "limits_revoke",
  "arguments": {
    "delegation": {
      "delegate": "0x000000000000000000000000000000000000bEEF",
      "delegator": "0x000000000000000000000000000000000000dEaD",
      "authority": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
      "caveats": [],
      "salt": "0",
      "signature": "0x"
    },
    "chainId": 8453
  }
}
Last updated