Skip to main content
Glama

Server Details

TRON Energy marketplace + DEX swap aggregator for AI agents. 27 MCP tools.

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
Hovsteder/powersun-tron-mcp
GitHub Stars
0

See and control every tool call

Log every tool call with full inputs and outputs
Control which tools are enabled per connector
Manage credentials once, use from any MCP client
Monitor uptime and get alerted when servers go down

Available Tools

27 tools
broadcast_signed_permission_txInspect

Broadcast a signed AccountPermissionUpdate transaction to the TRON blockchain. After broadcasting, verifies that the platform permissions were correctly applied. Use this after signing the transaction from build_permission_transaction. Requires authentication.

ParametersJSON Schema
NameRequiredDescriptionDefault
poolAddressYesThe pool address that the permission was granted on
signedTransactionYesThe signed transaction object from tronWeb.trx.sign()
broadcast_transactionInspect

Broadcast a pre-signed TRON transaction with auto energy delegation. Send your signed transaction data and PowerSun will delegate energy before broadcasting. Works with API key (balance deduction) or x402 USDC payment. Without authentication, returns cost estimate.

ParametersJSON Schema
NameRequiredDescriptionDefault
txDataYesPre-signed transaction object with txID, raw_data, raw_data_hex, and signature
build_permission_transactionInspect

Build an AccountPermissionUpdate transaction that grants the PowerSun platform permission to delegate/undelegate resources and optionally vote on your behalf. Returns an unsigned transaction that you must sign with your private key and then broadcast using broadcast_signed_permission_tx. All existing account permissions are preserved. Requires authentication.

ParametersJSON Schema
NameRequiredDescriptionDefault
includeVoteNoInclude VoteWitness permission for earning SR rewards (default: true)
poolAddressYesTRON address to grant permissions on (your pool address, T-address format)
buy_energyInspect

Purchase TRON Energy for a target address. Creates a MARKET order that will be filled by available pools. Deducts cost from your balance.

ParametersJSON Schema
NameRequiredDescriptionDefault
txTypeNoTransaction type (default: trc20_transfer)
txCountYesNumber of transactions you need energy for
resourceTypeNoResource type (default: ENERGY)
targetAddressYesTRON address to delegate energy to (T-address format)
durationMinutesNoDuration in minutes. Allowed: 2, 5, 10, 15, 30, 60, 360, 1440, 10080, 43200. Default: 60.
check_pool_permissionsInspect

Verify that the platform has the required active permissions on your pool address. Required: DelegateResource (to sell energy), UnDelegateResource (to reclaim). Optional: VoteWitness (to vote for SRs and earn rewards). Run this after granting permissions to confirm the platform can operate your pool. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault
poolAddressNoPool address to check. If omitted, uses your first registered pool.
configure_auto_sellingInspect

Update auto-selling configuration for a pool. Toggle energy/bandwidth selling, set reserves, duration constraints. Pass the configId from get_auto_selling_config.

ParametersJSON Schema
NameRequiredDescriptionDefault
activeNoEnable/disable auto-selling
configIdYesConfiguration ID to update (from get_auto_selling_config)
sellEnergyNoEnable/disable energy selling
maxDurationNoMaximum rental duration
minDurationNoMinimum rental duration (e.g., "5min", "1h", "1d")
allowRenewalsNoAllow order renewals
sellBandwidthNoEnable/disable bandwidth selling
reservedEnergyNoEnergy to keep reserved (not sold)
reservedBandwidthNoBandwidth to keep reserved (not sold)
estimate_costInspect

Calculate the cost of purchasing TRON Energy or Bandwidth. Provide transaction count and type to get the energy needed and cost in TRX.

ParametersJSON Schema
NameRequiredDescriptionDefault
txTypeNoTransaction type (default: trc20_transfer). trc20_transfer_new = first-time transfer to an address.
txCountYesNumber of transactions
resourceTypeNoResource type (default: ENERGY)
durationMinutesNoDuration in minutes. Allowed: 2, 5, 10, 15, 30, 60, 360, 1440, 10080, 43200. Default: 60.
execute_swapInspect

Execute a pre-signed swap transaction with automatic energy delegation. Get the unsigned TX from get_swap_quote, sign it, and submit here. Energy is delegated before broadcast. Works with API key (balance deduction) or x402 USDC payment.

ParametersJSON Schema
NameRequiredDescriptionDefault
txDataYesPre-signed swap transaction from get_swap_quote
get_auto_action_historyInspect

View execution history of automatic actions (stake, vote, claim) for your pool. Shows status (success/failed/skipped), amounts, transaction hashes, and timestamps. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of records to return (default: 20, max: 100)
actionTypeNoFilter by action type
poolAddressNoPool address to get history for. If omitted, uses your first registered pool.
get_auto_selling_configInspect

Get current auto-selling configuration for your pools. Shows which resources are being sold, duration constraints, and reserves.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

get_available_resourcesInspect

Get total available Energy and Bandwidth across all active pools. Shows how much resource can be purchased right now.

ParametersJSON Schema
NameRequiredDescriptionDefault
resourceTypeNoFilter by resource type (default: both)
durationMinutesNoFilter pools that support this duration
get_balanceInspect

Get your current TRX balance and deposit information. Requires API key authentication.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

get_deposit_infoInspect

Get the deposit address to top up your account balance with TRX.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

get_earningsInspect

Get earnings breakdown by pool: total earned, pending payout, paid out. Optionally filter by date range.

ParametersJSON Schema
NameRequiredDescriptionDefault
endDateNoEnd date (ISO 8601)
startDateNoStart date (ISO 8601, e.g. 2026-01-01)
get_market_overviewInspect

Comprehensive market overview: prices, availability, allowed durations, order constraints, and transaction types. Useful for agents to understand what they can purchase.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

get_onchain_statusInspect

Get live blockchain state for your pool: TRX balance, frozen resources (Energy/Bandwidth), voting status, claimable rewards, and delegated resources. Data is fetched directly from TRON blockchain. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault
poolAddressNoPool address to check. If omitted, uses your first registered pool.
get_ordersInspect

Get your order history with optional status filter. Returns recent orders sorted by creation time.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of orders to return (default: 20)
statusNoFilter by order status
get_order_statusInspect

Get detailed status of a specific order including delegation progress.

ParametersJSON Schema
NameRequiredDescriptionDefault
orderIdYesOrder ID (UUID format)
get_pool_delegationsInspect

Get active delegations from your pools. Shows who received energy/bandwidth and when delegations expire.

ParametersJSON Schema
NameRequiredDescriptionDefault
poolAddressNoFilter by specific pool address. If not provided, shows all your pools.
get_pool_statsInspect

Get comprehensive statistics for your energy/bandwidth pools: delegations, revenue, utilization, APY. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

get_pricesInspect

Get current TRON Energy and Bandwidth minimum prices for all duration tiers. Returns price per unit in SUN for each available duration.

ParametersJSON Schema
NameRequiredDescriptionDefault
resourceTypeNoFilter by resource type (default: all)
get_swap_quoteInspect

Get a price quote and unsigned transaction for swapping tokens on SunSwap DEX. Returns an unsigned TX for client-side signing. After signing, submit via execute_swap. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault
toTokenYesToken to buy — symbol or TRC-20 contract address
amountInYesAmount to swap in smallest unit (SUN for TRX, base units for tokens)
fromTokenYesToken to sell — symbol (USDT, TRX, SUN, ...) or TRC-20 contract address
slippageBpsNoSlippage tolerance in basis points (default: 50 = 0.5%)
registerInspect

Start agent registration by providing your TRON address. Returns a challenge string that you must sign with your TRON private key using tronWeb.trx.signMessageV2(). After signing, call verify_registration with the signature to receive your API key. No authentication required.

ParametersJSON Schema
NameRequiredDescriptionDefault
addressYesYour TRON wallet address (T-address format, 34 characters)
register_poolInspect

Register a TRON address as an energy/bandwidth selling pool on PowerSun. This creates a pool and auto-selling configuration. After registering, you must grant active permissions to the platform address (DelegateResource, UnDelegateResource, VoteWitness) so the platform can delegate resources to buyers and vote on your behalf. Use check_pool_permissions to verify permissions after granting them. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault
autoVoteNoAuto-vote for the best Super Representative to earn rewards (default: true)
sellEnergyNoEnable energy selling (default: true)
sellBandwidthNoEnable bandwidth selling (default: false)
paymentAddressYesTRON address to register as pool (starts with T, 34 characters). This is the address where you hold/stake TRX.
trigger_voteInspect

Vote for the best Super Representative (SR) with the highest APY to earn voting rewards. The platform automatically selects the SR with the best return. Requires VoteWitness permission granted to the platform. Voting rewards accumulate and can be claimed automatically if auto-claim is enabled. Requires API key.

ParametersJSON Schema
NameRequiredDescriptionDefault
poolAddressNoPool address to vote from. If omitted, uses your first registered pool.
verify_registrationInspect

Complete agent registration by verifying your signed challenge. Returns an API key and upgrades the current session to authenticated. After verification, all authenticated tools (buy_energy, get_balance, register_pool, etc.) will work in this session without needing to reconnect. No authentication required.

ParametersJSON Schema
NameRequiredDescriptionDefault
addressYesYour TRON wallet address (must match the register call)
signatureYesSignature from tronWeb.trx.signMessageV2(challenge, privateKey)
challengeIdYesChallenge ID from the register tool
withdraw_earningsInspect

Withdraw TRX from your account balance to your wallet. Minimum withdrawal: 100 TRX. Withdrawal is processed on-chain and may take a few minutes.

ParametersJSON Schema
NameRequiredDescriptionDefault
amountYesAmount to withdraw in TRX (minimum 100 TRX)

Verify Ownership

Claim this connector by publishing a /.well-known/glama.json file on your server's domain with the following structure:

{
  "$schema": "https://glama.ai/mcp/schemas/connector.json",
  "maintainers": [
    {
      "email": "your-email@example.com"
    }
  ]
}

The email address must match the email associated with your Glama account. Once verified, the connector will appear as claimed by you.

Sign in to verify ownership

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.