Skip to main content
Glama
Hovsteder

TRON infrastructure for AI agents.

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MERX_API_KEYNoYour API key from merx.exchange. Required to unlock trading tools, including order management, account balance, and monitoring tools.
TRON_PRIVATE_KEYNoYour 64-character hex TRON private key. Required to unlock write operations such as sending TRX/USDT, swapping tokens, and executing smart contract intents. Transaction signing is performed locally and the key never leaves your machine.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_pricesB

Get current energy and bandwidth prices from all Merx providers. No auth required.

get_best_priceA

Find the cheapest provider for a given resource and amount. No auth required.

analyze_pricesC

Market price analysis with trends and recommendations. No auth required.

get_price_historyC

Historical price snapshots. No auth required.

compare_providersA

Side-by-side provider comparison with prices and availability. No auth required.

estimate_transaction_costA

Estimate energy and bandwidth cost for a TRON transaction. Compares rental vs burn cost. No auth required.

check_address_resourcesB

Check energy, bandwidth, and TRX balance for any TRON address. No auth required.

create_orderB

Buy energy or bandwidth on Merx. Routed to cheapest provider. Auth required.

get_orderB

Get order details and fill status by ID. Auth required.

list_ordersC

List recent orders with optional status filter. Auth required.

ensure_resourcesA

Declarative resource provisioning. Checks current resources on target address and purchases only what is missing. Auth required.

get_balanceA

Get your Merx account balance (TRX, USDT, locked). Requires MERX_API_KEY.

get_deposit_infoB

Get your Merx deposit address and memo. Requires MERX_API_KEY.

get_transaction_historyB

Get your Merx account transaction history. Requires MERX_API_KEY.

explain_conceptA

Explain a TRON or Merx concept. No authentication required.

suggest_durationA

Recommend a rental duration based on your use case. No authentication required.

calculate_savingsA

Calculate savings from renting energy vs burning TRX. No authentication required.

list_providersA

List all Merx providers with types, durations, and availability. No authentication required.

get_account_infoA

Full on-chain account state: TRX balance, energy, bandwidth, creation date. No auth required.

get_trx_balanceA

Quick TRX balance for a TRON address. No auth required.

get_trc20_balanceA

Get TRC-20 token balance for an address. Supports symbol (USDT, USDC) or contract address. No auth required.

get_transactionA

Look up a transaction by ID on TRON. No auth required.

get_blockA

Get TRON block info by number (or latest if omitted). No auth required.

get_chain_parametersA

Get TRON network parameters (energy fee, bandwidth cost, etc.) with Merx price comparison. No auth required.

convert_addressA

Convert TRON address between base58 (T...) and hex (41...) formats. No auth required.

get_trx_priceA

Get current TRX price from CoinGecko. No auth required.

validate_addressA

Validate a TRON address format and check on-chain status. No auth required.

search_transaction_historyA

Get on-chain transaction history for a TRON address. No auth required.

transfer_trxA

Send TRX to an address. Checks bandwidth, buys via Merx if needed. Signs and broadcasts on-chain. Requires TRON_PRIVATE_KEY.

transfer_trc20A

Transfer TRC-20 tokens with automatic energy optimization. Signs and broadcasts on-chain. Requires TRON_PRIVATE_KEY.

approve_trc20A

Approve TRC-20 spending allowance. Signs and broadcasts on-chain. Requires TRON_PRIVATE_KEY.

get_token_infoA

Get TRC-20 token metadata: name, symbol, decimals, total supply. No auth required.

read_contractA

Call a view/pure function on a TRON smart contract. No auth or private key required.

estimate_contract_callA

Estimate energy and bandwidth cost for a smart contract call. Compares rental vs burn cost. No auth required.

call_contractA

Execute a state-changing smart contract function. Estimates resources, buys via Merx if needed. Requires TRON_PRIVATE_KEY and TRON_ADDRESS.

get_swap_quoteC

Get a real swap quote from SunSwap V2. No auth required.

execute_swapC

Execute a token swap on SunSwap V2. Requires TRON_PRIVATE_KEY.

get_token_priceB

Get token price via SunSwap quote + CoinGecko USD rate. No auth required.

create_accountA

Create a new Merx account, generate an API key, and get deposit info. No auth needed.

loginB

Log in to an existing Merx account. No MERX_API_KEY needed.

set_api_keyA

Set your Merx API key for this session. Unlocks all authenticated tools (trading, balance, orders). Use this if you already have an API key.

set_private_keyA

Set your TRON private key for this session. Address is derived automatically. Enables write tools: transfer_trx, transfer_trc20, approve_trc20, execute_swap, deposit_trx. Key stays local - never sent to Merx servers.

deposit_trxA

Deposit TRX to your Merx account. Requires MERX_API_KEY + TRON_PRIVATE_KEY.

enable_auto_depositB

Configure automatic top-up when balance drops below a threshold. Session-only.

pay_invoiceB

Pay an x402 invoice by sending TRX and verifying payment.

create_paid_orderA

Create a zero-registration order via x402 pay-per-use. Requires TRON_PRIVATE_KEY.

execute_intentB

Execute a multi-step operation (transfer, swap, buy resources, etc). Validates and simulates all steps with resource cost estimates. Auth required.

simulateA

Simulate a multi-step operation without executing. Returns resource estimates and costs.

create_standing_orderB

Create a server-side standing order with trigger-based automation. Auth required.

list_standing_ordersB

List all standing orders with optional status filter. Auth required.

create_monitorA

Create a persistent monitor (delegation expiry, balance, price alert). Auth required.

list_monitorsC

List all monitors with optional status filter. Auth required.

withdrawA

Withdraw TRX or USDT from your Merx account to an external TRON address. Requires MERX_API_KEY.

Prompts

Interactive templates invoked by user choice

NameDescription
buy-energyBuy TRON energy at the best market price
buy-bandwidthBuy TRON bandwidth at the best market price
ensure-resourcesGuarantee minimum energy + bandwidth on an address
market-analysisFull TRON energy and bandwidth market analysis
compare-providersDeep comparison of providers for a specific use case
send-usdtSend USDT (TRC-20) to a TRON address with optimized fees
send-trxSend TRX to a TRON address
send-tokenSend any TRC-20 token to a TRON address
multi-transferSend tokens to multiple recipients in one batch operation
explain-transactionAnalyze and explain a TRON transaction in human-readable terms
check-walletFull wallet overview: balances, resources, staking, and recent activity
audit-spendingAnalyze spending on energy, bandwidth, and fees over a time period
monitor-delegationsShow all active resource delegations to and from an address
optimize-walletAnalyze wallet usage patterns and recommend optimizations for staking, resources, and fee reduction
swap-tokensSwap tokens on TRON DEX with best route and slippage protection
check-tokenGet detailed information about a TRC-20 token: price, liquidity, holders, contract verification, and risk assessment
price-checkGet current prices for one or more tokens with 24h change and volume
estimate-costsEstimate the cost of a TRON operation including energy, bandwidth, and fees. Compare burning TRX vs renting resources.
budget-planCreate a daily/weekly/monthly budget plan for TRON operations. Calculates optimal resource strategy based on transaction volume.
stake-vs-rentCompare staking TRX for resources vs renting on Merx. Shows breakeven point and total cost over 30/90/365 days.
integrate-merxGenerate integration code for Merx SDK
setup-mcpSet up Merx MCP server for an AI client
onboardSet up a new Merx account with API key and deposit address
fund-accountFund your Merx account with TRX
setup-auto-fundingConfigure automatic Merx account funding
buy-without-accountBuy TRON resources without a Merx account using x402 payment protocol
simulate-planSimulate a multi-step operation before executing to preview costs and outcomes
execute-planExecute a multi-step plan with resource optimization
setup-standing-orderCreate a standing order that buys resources when price conditions are met
auto-renew-delegationsAutomatically renew resource delegations before they expire

Resources

Contextual data attached and managed by the client

NameDescription
Energy PricesEnergy prices from all providers, sorted cheapest first
Bandwidth PricesBandwidth prices from providers that offer it
Best PricesBest energy + bandwidth price with USDT transfer cost
Market AnalysisPrice trends, averages, and buy/wait recommendation
Provider ListAll providers with type, durations, resources, status
Provider StatusProvider health: online/offline, available supply
Account BalanceMerx balance: TRX available, locked, USDT
Recent OrdersLast 10 orders with status and cost
Account Stats30-day stats: total spent, saved, order count
Auto-Deposit ConfigAuto-deposit threshold and amount configuration
Chain ParametersTRON network parameters: burn prices, energy limit
TRX PriceCurrent TRX price in USD
Token RegistryWell-known TRC20 tokens: addresses, decimals
Active Standing OrdersActive standing orders with trigger status

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Hovsteder/merx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server