Skip to main content
Glama

gasrent

Buy energy

rent_energy
Destructive

Buy energy for an address and charge the TRX balance. The lowest offer is tried first; price_trx in the answer is the full charge. Spends money: confirm with the user first. Needs an API key at the rent or full level.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>",
      "volume": "<volume>",
      "duration": "<duration>"
    },
    "name": "rent_energy"
  }
}

Input Schema

NameRequiredDescriptionDefault
volumeYesEnergy amount, 30000 to 4000000. One USDT transfer usually needs about 65000, or about 131000 to an address that holds no USDT.
addressYesAddress that receives the energy.
durationYesEnergy rental length.
exact_volumeNoOptional, default false. True excludes suppliers that do not sell exactly this amount.
no_activationNoOptional, default false. True fails with inactive_address instead of adding the activation fee for an address that is not activated.
exact_durationNoOptional, default false. True excludes suppliers that do not sell exactly this duration; false allows the shortest longer one.
idempotency_keyNoRecommended. A new random value for each purchase. Reuse it only to retry the same purchase after a lost response: the original result comes back and nothing is charged twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the destructiveHint/openWorldHint annotations, the description discloses the supplier selection strategy (lowest offer first), the meaning of the returned price_trx as the full charge, that funds are actually spent, and the required API key tier. These are exactly the operational facts an agent needs before a money-moving call and are not present in the annotation set.

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

Conciseness5/5

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

Four short sentences, zero filler: purpose and charge target first, then supplier/price behavior, then the money warning, then the auth constraint. The most safety-critical line is placed before the API-key note and nothing repeats the schema.

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

Completeness4/5

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

For a 7-parameter, money-spending tool with no output schema, the description covers cost semantics, supplier ordering, confirmation duty and auth requirements. It does not describe the response beyond price_trx (e.g. order ID or fields for retrieving the order later via get_energy_order), which is a minor remaining gap.

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

Parameters3/5

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

Schema description coverage is 100%, with each parameter, enum, default and the idempotency_key retry semantics already documented in the schema. The description adds no parameter-level detail (e.g. no guidance on choosing duration or exact_* flags), so it sits at the baseline for a fully documented schema.

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

Purpose4/5

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

"Buy energy for an address and charge the TRX balance" gives a specific verb, resource, target and payment source, which clearly separates it from the quote/list/get siblings whose names imply no spending. It never names quote_energy as the read-only price-check counterpart, so separation from that closest alternative is left implicit.

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

Usage Guidelines4/5

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

"Spends money: confirm with the user first" is an explicit precondition that tells the agent when this tool is appropriate and what must happen before invoking it, plus the API-key-level requirement. It stops short of naming an alternative for price inspection, but the guidance it does give is concrete and actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources