Skip to main content
Glama
TronSave MCP Server

TronSave MCP Server

Official

Estimate Buy Resource

tronsave_estimate_buy_resource
Read-onlyIdempotent

Get a quote for buying TRON ENERGY or BANDWIDTH for a receiver address, including unit price, duration, total TRX cost, and availability before placing an order.

Instructions

Quote price and availability for buying ENERGY or BANDWIDTH for a receiver address before placing an order. This quote feeds tronsave_create_order; for tronsave_internal_order_create (API key) quote with tronsave_internal_order_estimate. Returns { unitPrice (SUN/unit), durationSec, estimateTrx (total cost in SUN), availableResource, systemDepositAddress } — map them to tronsave_create_order as orderUnitPrice, orderDurationSec, paymentPaymentAmount. Defaults: ENERGY, 100000 units (1000 for BANDWIDTH), 900 s. Read-only and safe to call repeatedly; no session is required, but backend rate limits apply. For order-book depth use tronsave_list_order_books; for the minimum unit price only use tronsave_get_min_price.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tronsave_estimate_buy_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiverNoTRON address that will receive the resource. Strongly recommended: quotes depend on it.
unitPriceNoDesired unit price in SUN. Values below the market minimum are raised to the minimum. Omit for the MEDIUM market price.
durationSecNoDelegation duration in seconds. Default 900 (15 minutes).
resourceTypeNoResource type to buy. Default ENERGY.ENERGY
allowPartialFillNoAllow partial fill of the order.
buyResourceAmountNoResource units to buy. Default 100000 for ENERGY and 1000 for BANDWIDTH.
minResourceDelegateRequiredAmountNoMinimum resource amount per matching provider.

Output Schema

NameRequiredDescriptionDefault
unitPriceNoQuoted unit price in SUN per resource unit → `orderUnitPrice`.
durationSecNoDelegation duration in seconds → `orderDurationSec`.
estimateTrxNoEstimated total cost in SUN (despite the name; TRX = value / 1e6) → `paymentPaymentAmount`.
availableResourceNoResource units currently available at this price; if lower than requested, the order may fill partially.
systemDepositAddressNoTronSave deposit address; destination of the signed TRX transfer for `paymentMethod=onchain`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, and openWorld, and the description adds genuinely new behavior: no session required, backend rate limits apply, safe to call repeatedly, and which returned fields map to which tronsave_create_order parameters. That mapping is actionable context not present in any structured field.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and purpose, then the downstream mapping, then defaults, then sibling routing — a sensible order with no filler sentences. It is dense as a single block and the return-shape and alternative-tool clauses could be split for scanability, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only quote tool with an output schema, full parameter coverage, and rich annotations, the description covers purpose, defaults, output semantics, follow-up call, and alternatives. An agent has everything needed to call it correctly and use the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description still adds value by summarizing the default combinations (ENERGY/100000 units/900 s, BANDWIDTH/1000) and, more importantly, by explaining how the quote's outputs become create_order inputs. It does not add much on the less obvious params like allowPartialFill or minResourceDelegateRequiredAmount beyond what the schema says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: quoting price and availability for buying ENERGY or BANDWIDTH for a receiver address, explicitly positioned as a pre-order step. It also names the exact siblings it is not (tronsave_internal_order_estimate for API-key orders), so an agent can distinguish it immediately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: use this quote to feed tronsave_create_order, use tronsave_internal_order_estimate for internal orders, tronsave_list_order_books for order-book depth, and tronsave_get_min_price for minimum price only. Defaults for resourceType, amount, and duration are restated so an agent can call with zero arguments.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools