Skip to main content
Glama
bbsyaya

mcp-server-TLD

by bbsyaya

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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 configured wallet address. This wallet is used for all lending operations.

get_supported_networksA

List all supported TRON networks for JustLend.

get_supported_marketsA

List all available JustLend lending markets (jTokens) with their addresses and underlying assets.

get_market_dataA

Get detailed market data for a specific JustLend market: supply/borrow APY, TVL, utilization, collateral factor, price, and status. Use jToken symbol like 'jUSDT' or 'jTRX'.

get_all_marketsA

Get overview data for ALL JustLend markets including supply APY, borrow APY, mining rewards APY, underlying staking yield, total supply APY, and TVL. Mining APY is calculated from on-chain supply mining programs (USDD/TRX dual mining, WBTC mining, etc.). totalSupplyAPY = base supply APY + underlying staking APY + mining APY.

get_protocol_summaryA

Get JustLend protocol-level info: Comptroller config, close factor, liquidation incentive, total markets.

get_markets_from_apiA

Get all market data from JustLend API. More stable than contract queries. Returns comprehensive market data including APY, TVL, utilization, prices, mining rewards, etc.

get_dashboard_from_apiA

Get JustLend protocol dashboard from API. Returns protocol-level statistics: total supply, total borrow, TVL, number of suppliers/borrowers, etc.

get_jtoken_details_from_apiB

Get detailed jToken information from API. Returns comprehensive market details including interest rate model, reserve info, etc.

get_account_summaryA

Get a comprehensive view of a user's JustLend positions: supply balances, borrow balances, collateral status, health factor, liquidation risk, and USD values for each market.

check_allowanceA

Check if the underlying TRC20 token has been approved for a jToken market. Must be approved before supply() or repay() for TRC20 markets. Not needed for jTRX.

get_trx_balanceB

Get TRX balance for an address.

get_token_balanceA

Get TRC20 token balance for an address. You can pass either a token symbol (e.g. 'USDD', 'USDT', 'ETH') or a contract address. When using a symbol, it resolves to the correct contract address from JustLend markets automatically. IMPORTANT: Always prefer using token symbols over raw addresses to avoid using outdated/wrong contract addresses. For example, use 'USDD' instead of a raw address — the old USDD (TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn) is deprecated. The returned balance is already formatted in human-readable token units (decimals already applied). Do NOT divide the balance by decimals again.

get_account_data_from_apiA

Get user account data from JustLend API. More stable and comprehensive than contract queries. Returns lending positions, balances, mining rewards, health factor, etc.

supplyA

Supply (deposit) assets into a JustLend market to earn interest. For TRC20 markets, you must first call approve_underlying. For jTRX, TRX is sent directly. Returns a jToken balance representing your deposit. Typical cost: ~100,000 energy + ~310 bandwidth for TRC20, ~80,000 energy + ~280 bandwidth for TRX. Use estimate_lending_energy tool for precise estimates before executing.

withdrawA

Withdraw (redeem) supplied assets from a JustLend market. Specify the amount in underlying units. May fail if assets are used as collateral for active borrows. Typical cost: ~90,000 energy + ~300 bandwidth.

withdraw_allA

Withdraw ALL supplied assets from a JustLend market by redeeming all jTokens. Typical cost: ~90,000 energy + ~300 bandwidth.

borrowA

Borrow assets from a JustLend market against your collateral. You must have entered a market as collateral (enter_market) and have sufficient liquidity. Check your account_summary and health_factor before borrowing. Typical cost: ~100,000 energy + ~313 bandwidth.

repayA

Repay borrowed assets to a JustLend market. For TRC20 markets, must have approved underlying first. Use amount='max' to repay the full outstanding borrow. Typical cost: 80,00090,000 energy + 280320 bandwidth (TRX costs less than TRC20).

enter_marketA

Enable a jToken market as collateral. Required before borrowing against supplied assets. Once entered, your supply in this market counts towards your borrowing capacity. Typical cost: ~80,000 energy + ~300 bandwidth.

exit_marketA

Disable a jToken market as collateral. Will fail if doing so would make your account undercollateralized. Check account_summary first to ensure safety. Typical cost: ~50,000 energy + ~280 bandwidth.

approve_underlyingA

Approve the jToken contract to spend your underlying TRC20 tokens. Required before supply() or repay() for TRC20-backed markets (not needed for jTRX). Use amount='max' for unlimited approval. Typical cost: ~23,000 energy + ~265 bandwidth.

claim_rewardsA

Claim accrued JustLend mining rewards for the configured wallet. Typical cost: ~60,000 energy + ~330 bandwidth.

estimate_lending_energyA

Estimate energy, bandwidth, and TRX cost for any JustLend operation BEFORE executing it. Covers ALL operations: supply, withdraw, withdraw_all, borrow, repay, approve, enter_market, exit_market, claim_rewards. Tries on-chain simulation first; falls back to historical typical values if simulation fails. Returns per-step breakdown (e.g. approve + mint for supply), total energy, total bandwidth, and estimated TRX cost. For supply/repay: automatically checks current allowance — if sufficient, the approve step is skipped. For approve: supports custom spender address (not just jToken). Use this tool whenever the user asks about gas/energy/cost for any lending operation.

get_mining_rewardsA

Get mining rewards for supply markets (USDD, WBTC, etc.). Returns unclaimed rewards, mining APY, and reward breakdown from API.

get_usdd_mining_configA

Get USDD mining configuration including mining periods, reward tokens (USDD/TRX dual mining), and schedule.

get_wbtc_mining_configB

Get WBTC mining configuration and supply mining activity details.

get_proposal_listA

Get the list of JustLend DAO governance proposals. Returns proposals with their status (Active, Passed, Defeated, etc.), vote counts, and details. Sorted by newest first.

get_user_vote_statusA

Get a user's voting status across all governance proposals. Shows which proposals the user has voted on, their vote amounts (for/against/abstain), and which proposals have withdrawable votes.

get_vote_infoA

Get voting power info for a user: JST wallet balance, available (surplus) votes, total deposited votes, and votes currently cast in proposals. This is the key tool to check before voting — it shows how many votes are available to use.

get_locked_votesA

Get the number of votes a user has locked in a specific proposal.

check_jst_allowance_for_votingA

Check if JST has been approved for the WJST voting contract. Must be approved before depositing JST to get votes.

approve_jst_for_votingA

Approve JST token for the WJST voting contract. Required before depositing JST to get voting power. Use amount='max' for unlimited approval.

deposit_jst_for_votesA

Deposit JST into the WJST contract to get voting power. Requires prior approval of JST for the WJST contract (use approve_jst_for_voting first). 1 JST = 1 Vote. Deposited JST can be withdrawn back after voting.

withdraw_votes_to_jstA

Withdraw WJST back to JST. Can only withdraw votes that are not currently locked in active proposals. Use get_vote_info to check your surplus (available) votes before withdrawing.

cast_voteA

Cast a vote on a governance proposal. You must have available votes (deposit JST first if needed). Support: true = vote FOR, false = vote AGAINST. You can add more votes to a proposal you already voted on.

withdraw_votes_from_proposalA

Withdraw (reclaim) votes from a completed or canceled proposal. Only works for proposals that are no longer active. After withdrawing, the votes become available again for other proposals or can be converted back to JST.

Prompts

Interactive templates invoked by user choice

NameDescription
supply_assetsStep-by-step guide to safely supply assets into JustLend to earn interest
borrow_assetsStep-by-step guide to safely borrow assets from JustLend against collateral
repay_borrowStep-by-step guide to repay borrowed assets on JustLend
analyze_portfolioComprehensive analysis of a user's JustLend portfolio with risk assessment and optimization suggestions
compare_marketsCompare JustLend markets to find the best opportunities for supply or borrow

Resources

Contextual data attached and managed by the client

NameDescription
justlend://protocol-infoJustLend DAO protocol information and contract addresses

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/bbsyaya/mcp-server-tld'

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