Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TRONGRID_API_KEYNoOptional TronGrid API key to avoid rate limiting on Mainnet.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_wallet_addressA

Get the address of the configured wallet. Use this to verify which wallet is active.

list_walletsA

List all available wallets. Returns wallet IDs, types, and addresses. Use select_wallet to switch between them.

select_walletA

Switch the active wallet at runtime. Use list_wallets to see available wallet IDs. Only available in Encrypted Storage mode.

sign_messageA

Sign an arbitrary message using the configured wallet.

get_chain_infoA

Get information about a TRON network: current block number and RPC endpoint

get_supported_networksA

Get a list of all supported TRON networks

get_chain_parametersA

Get current chain parameters including Energy and Bandwidth unit prices. Returns structured fee information similar to gas price queries.

convert_addressA

Convert addresses between Hex and Base58 formats

get_blockB

Get block details by block number or hash

get_latest_blockB

Get the latest block from the network

get_balanceB

Get the TRX balance for an address

get_token_balanceA

Get the TRC20 token balance for an address

get_transactionC

Get transaction details by transaction hash

get_transaction_infoB

Get transaction info (receipt/confirmation status, energy usage, logs).

read_contractB

Call read-only functions on a smart contract.

get_contractA

Get raw contract metadata from the chain, including ABI (if verified) and bytecode.

get_contract_infoB

Get high-level information about a contract: ABI, readable function signatures, and raw metadata.

fetch_contract_abiA

Fetch contract ABI from the chain (for verified contracts). Returns the ABI entry array.

multicallA

Execute multiple read-only functions in a single batch call.

write_contractA

Execute state-changing functions on a smart contract. Requires configured wallet.

deploy_contractB

Deploy a smart contract to the TRON network using ABI and Bytecode.

estimate_energyA

Estimate energy consumption for a smart contract call (simulation).

update_contract_settingA

Update a contract's consume_user_resource_percent (user pay ratio). Requires the contract creator's wallet.

update_energy_limitA

Update a contract's originEnergyLimit (max energy the contract creator will pay per execution). Requires the contract creator's wallet.

clear_abiA

Clear the on-chain ABI metadata of a contract (ClearABIContract). Requires the contract creator's wallet.

transfer_trxB

Transfer TRX to an address.

transfer_trc20A

Transfer TRC20 tokens to an address.

freeze_balance_v2B

Freeze TRX to get resources (Stake 2.0).

unfreeze_balance_v2B

Unfreeze TRX to release resources (Stake 2.0).

withdraw_expire_unfreezeA

Withdraw expired unfrozen balance (Stake 2.0). Call this after the unfreezing period to return TRX to available balance.

cancel_all_unfreeze_v2A

Cancel unstakings, all unstaked funds still in the waiting period will be re-staked, all unstaked funds that exceeded the 14-day waiting period will be automatically withdrawn to the owner’s account.

get_available_unfreeze_countA

Get remaining available unstake (unfreeze) operations for an address in Stake 2.0.

get_can_withdraw_unfreeze_amountA

Get the withdrawable unstaked TRX amount for an address at a given timestamp in Stake 2.0.

delegate_resourceA

Delegate staked resources (BANDWIDTH or ENERGY) from the configured wallet to another address.

undelegate_resourceA

Revoke previously delegated staked resources (BANDWIDTH or ENERGY) from a receiver address back to the configured wallet.

get_can_delegated_max_sizeA

Get the maximum amount of TRX (in Sun) that an address can currently delegate as resources (BANDWIDTH or ENERGY) under Stake 2.0.

get_delegated_resource_v2A

Get delegated resource details (bandwidth and energy) between two addresses under Stake 2.0.

get_delegated_resource_account_index_v2A

Get delegated resource account index for an address under Stake 2.0 (who delegated to this address and who this address delegated to).

get_block_by_numA

Query block by block height. Returns block header and transaction list.

get_block_by_idA

Query block by block ID (hash). Returns block header and transaction list.

get_block_by_latest_numA

Retrieve the most recent N blocks, starting from the latest solidified block in descending order of height.

get_block_by_limit_nextA

Retrieve a list of block objects within the specified block height range [startNum, endNum).

get_now_blockB

Get the current latest block information from the network.

get_transaction_by_idB

Query transaction status and content by transaction hash.

get_transaction_info_by_idB

Query transaction receipt including energy usage, fee, logs, and confirmation status by transaction hash.

get_transaction_info_by_block_numA

Get TransactionInfo (receipts) for all transactions in a specific block height.

get_energy_pricesA

Query historical energy unit price on the TRON network.

get_bandwidth_pricesA

Query historical bandwidth unit price on the TRON network.

get_burn_trxA

Query the total amount of TRX burned from on-chain transaction fees since No. 54 Committee Proposal took effect.

get_approved_listA

Query the list of accounts that have signed a given transaction. Pass the full transaction JSON object.

get_block_balanceA

Get all balance change operations in a block. Requires block hash and block number. Note: requires the node to enable historical balance query.

broadcast_transactionC

Broadcast a signed transaction to the TRON network. Accepts the full signed transaction JSON object.

broadcast_hexA

Broadcast a signed, protocol buffer-encoded transaction hex string to the TRON network.

create_transactionA

Create an unsigned TRX transfer transaction. The recipient account will be auto-activated if it does not exist. Returns an unsigned transaction object that must be signed before broadcasting.

list_nodesA

List all connected node addresses on the TRON network. Returns an array of node IP:port strings.

get_node_infoA

Get detailed information about the current TRON node, including version, config, peers, and machine info.

get_pending_transactionsA

Get the list of transaction IDs currently in the pending pool (mempool).

get_transaction_from_pendingA

Get the details of a specific transaction from the pending pool by its transaction ID.

get_pending_sizeA

Get the number of transactions currently in the pending pool (mempool).

get_events_by_transaction_idA

Get all events emitted by a specific transaction.

get_events_by_contract_addressA

Get recent events emitted by a specific contract address.

get_events_by_block_numberA

Get events emitted in a specific block. Supports pagination via limit and fingerprint. Preferred over get_events_of_latest_block when you need precise block targeting or full event retrieval.

get_events_of_latest_blockA

Get events from the most recent block that contains events (skips empty blocks). Results may be limited by the API default page size and subject to event indexing lag. For precise control, use get_events_by_block_number with a specific block number and limit/fingerprint pagination.

get_accountA

Get full account information including balance, resources, permissions, frozen balance, and votes.

get_account_balanceA

Get account TRX balance at a specific block height.

generate_accountA

Generate a new TRON account offline (keypair generation). Returns privateKey, publicKey, and address. No network interaction needed.

validate_addressA

Validate a TRON address and detect its format (Base58 or Hex).

get_account_netB

Get bandwidth (net) resource information for an account.

get_account_resourceA

Get account resource details including energy, bandwidth, frozen balance, and delegation info.

get_delegated_resourceA

Query the amount of resources delegated from one account to another (Stake 2.0).

get_delegated_resource_indexA

Query the resource delegation index for an account: who delegated to this account, and who this account delegated to.

create_accountA

Activate a new account on the TRON network. Costs bandwidth from the configured wallet. The target address must be generated beforehand.

update_accountA

Update the name of the configured wallet's account. Can only be set once.

account_permission_updateA

Update account permissions for multi-signature configuration. Set owner, active, and optional witness permissions.

list_witnessesA

Get the full list of all Super Representatives (SR / witnesses) on the network.

get_paginated_witnessesB

Get a paginated list of current active Super Representatives.

get_next_maintenance_timeA

Get the timestamp of the next network maintenance window.

get_rewardA

Query the current unclaimed voting reward for an address.

get_brokerageA

Query the brokerage ratio (dividend percentage) of a Super Representative. The brokerage value is the percentage that the SR keeps; the rest is distributed to voters.

create_witnessA

Apply to become a Super Representative (SR). Requires the configured wallet and burns 9999 TRX as application fee.

update_witnessA

Update the SR node website URL for the configured wallet (must already be an SR).

vote_witnessA

Vote for Super Representatives using TRON Power (obtained by freezing TRX). Each frozen TRX = 1 vote.

withdraw_balanceA

Withdraw accumulated voting rewards to the configured wallet's available balance.

update_brokerageA

Update the SR brokerage ratio (dividend ratio). Only callable by an SR. Value is the percentage the SR keeps (0-100); the remainder goes to voters.

list_proposalsA

List all network governance proposals.

get_proposalA

Get details of a specific governance proposal by its ID.

create_proposalA

Create a new network governance proposal (SR only). Provide a map of chain parameter IDs to proposed values.

approve_proposalA

Vote to approve or disapprove a governance proposal (SR only).

delete_proposalA

Delete a governance proposal (SR only, only the proposal creator can delete it).

get_account_infoA

Get comprehensive account information from TronGrid indexed data, including TRX balance, TRC20 balances, frozen resources, and votes. Data comes from the TronGrid indexer and may have slight delays compared to on-chain state.

get_account_transactionsA

Get transaction history for an account from TronGrid indexed data. Returns all transaction types (TRX transfers, contract calls, etc.). Supports pagination via limit + fingerprint. Default 20 results, max 200 per page.

get_account_trc20_transactionsA

Get TRC20 token transfer history for an account from TronGrid indexed data. Returns token transfer details including token info (name, symbol, decimals) and human-readable values. Supports pagination via limit + fingerprint. Default 20 results, max 200 per page.

get_account_internal_transactionsA

Get internal transactions (triggered by smart contract execution) for an account from TronGrid indexed data. Supports pagination via limit + fingerprint. Default 20, max 200.

get_account_trc20_balancesA

Get all TRC20 token balances for an account from TronGrid indexed data. Returns only token contract addresses and raw balances — does NOT include token metadata (name, symbol, decimals). Use get_token_balance for detailed info on a specific token.

get_contract_transactionsA

Get transaction history for a smart contract from TronGrid indexed data. Unlike get_account_transactions, this aggregates transactions BY contract. Supports pagination via limit + fingerprint. Default 20 results, max 200 per page.

get_contract_internal_transactionsA

Get internal transactions (triggered by smart contract execution) for a contract address from TronGrid indexed data. Supports pagination via limit + fingerprint. Default 20, max 200.

get_trc20_token_holdersA

Get token holder list for a TRC20 contract from TronGrid indexed data. Returns holder addresses and their balances. Supports pagination via limit + fingerprint.

Prompts

Interactive templates invoked by user choice

NameDescription
prepare_transferSafely prepare and execute a token transfer with validation checks
interact_with_contractSafely execute write operations on a smart contract with validation and confirmation
diagnose_transactionAnalyze transaction status, failures, and provide debugging insights
explain_tron_conceptExplain TRON and blockchain concepts with examples
analyze_walletGet comprehensive overview of wallet assets, balances, and activity
check_network_statusCheck current network health and conditions

Resources

Contextual data attached and managed by the client

NameDescription
supported_networksGet list of all supported TRON networks and their configuration

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/BofAI/mcp-server-tron'

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