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).
| Argument | Type | Required | Notes |
|---|---|---|---|
amount | string | yes | Amount in base units.decimal digits |
from | string | yes | Sender.an address |
to | string | yes | Recipient to check.an address |
token | string | yes | Token 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. |
allowRisky | boolean | Build the transfer even on a danger verdict. Only if the user checked the address and insists.default false | |
chainId | 8453 | 56 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
from | string | yes | Sender of the transaction.an address |
to | string | yes | Recipient / contract called.an address |
authorizationList | array of objects | EIP-7702 authorizations, if the transaction carries any.0 to 4 items | |
data | string | Call data, hex.hex bytes, default "0x" | |
gas | integer | The gas limit you will sign (default: estimated x1.2, as wallets do).21000 to 3000000 | |
value | string | Native coin sent (BNB on 56, ETH on 8453), in wei: decimal or 0x-hex string.default "0" | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
action | object | yes | One 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
token | string | yes | Token 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. |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
address | string | yes | The wallet to check.an address |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
owner | string | yes | Wallet whose allowances to list.an address |
spenders | array of strings | Extra spender addresses to check.0 to 10 items | |
tokens | array of strings | Extra tokens to check (the wallet's holdings). Each an address or a symbol, as for token arguments.0 to 20 items | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
address | string | yes | Wallet or contract to read.an address |
tokens | array of strings | Extra tokens to check besides the chain's known ones. Each an address or a symbol, as for token arguments.0 to 20 items | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
address | string | yes | Wallet whose transfers to list.an address |
limit | integer | How many of the newest transfers.1 to 50, default 20 | |
tokens | array of strings | Tokens to scan besides the known ones (10 in total). Each an address or a symbol, as for token arguments.0 to 10 items | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
hash | string | yes | Transaction hash.32-byte hex |
owner | string | Optional: the address the user owns. When it sent the transaction the effects read "you send / you receive"; otherwise "the sender".an address | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
hash | string | yes | Transaction hash.32-byte hex |
expected | object | Optional: the simulate_explain answer for this transaction (its balanceChanges and transaction are compared). | |
waitSecs | integer | How long to wait for the receipt (then call again).0 to 20, default 15 | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
tokenIn | string | yes | Token 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. |
tokenOut | string | yes | Token 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. |
amount | string | Amount of tokenIn in base units (default: one whole token).decimal digits | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
buyToken | string | yes | Token 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. |
sellAmount | string | yes | Amount to sell in base units (wei), as a decimal string.decimal digits |
sellToken | string | yes | Token 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. |
chainId | 8453 | 56 | Chain 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%.
| Argument | Type | Required | Notes |
|---|---|---|---|
pool | string | A pool address.an address | |
tokenA | string | Or 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. | |
tokenB | string | The 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. | |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
token | string | yes | Token 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. |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
address | string | yes | Any address.an address |
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
chainId | 56 | 8453 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
buyToken | string | yes | Token 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. |
sellAmount | string | yes | Amount to sell in base units (wei), as a decimal string.decimal digits |
sellToken | string | yes | Token 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. |
taker | string | yes | The wallet that will sign and send; it pays and receives the output.an address |
acceptUncheckedPrice | boolean | Build 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 | |
allowRisky | boolean | Build even if the buy token is flagged as a honeypot or high sell tax. Only when the user explicitly accepts that risk.default false | |
allowUnpriced | boolean | Base: 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" | |
delegation | object | Optional: 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. | |
quote | object | Optional: the quote tool's answer you are acting on; you are told if it went stale or the price moved. | |
slippageBps | integer | Max slippage in basis points (50 = 0.5%).0 to 300, default 50 | |
chainId | 8453 | 56 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
owner | string | yes | Wallet that granted the allowance (signs the revoke).an address |
spender | string | yes | Spender to revoke.an address |
token | string | yes | Token address.an address |
via | "erc20" | "permit2" | erc20: approve(spender, 0) on the token. permit2: Permit2 lockdown.default "erc20" | |
chainId | 8453 | 56 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
agent | string | yes | The agent's key address, provided by the user or agent (we never create keys).an address |
budgets | array of objects | yes | Tokens the agent may sell and the total each (base units).1 to 5 items |
buyTokens | array of strings | yes | Tokens 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 |
owner | string | yes | The user's own account (an ordinary wallet): it signs the upgrade, the budgets and the delegation.an address |
expiresInHours | integer | Validity, hours from now (max 90 days).1 to 2160, default 24 | |
maxSwaps | integer | Cap on the number of swaps.1 to 100000, default 20 | |
recipients | array of strings | Who may receive swap output. Default: only the owner.0 to 3 items | |
chainId | 8453 | 56 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
delegation | object | yes | The delegation object (delegate, delegator, authority, caveats, salt, signature), signed or not. |
chainId | 8453 | 56 | Chain 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.
| Argument | Type | Required | Notes |
|---|---|---|---|
delegation | object | yes | The delegation object (delegate, delegator, authority, caveats, salt, signature), signed or not. |
chainId | 8453 | 56 | Chain 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
}
}