Skip to main content
Glama

gasrent

Buy bandwidth

rent_bandwidth
Destructive

Buy bandwidth for an address and charge the TRX balance. Does not activate the address. 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_bandwidth"
  }
}

Input Schema

NameRequiredDescriptionDefault
volumeYesBandwidth points, 1 to 100000. A USDT transfer needs about 345.
addressYesAddress that receives the bandwidth.
durationYesBandwidth rental length.
exact_volumeNoOptional, default false. True excludes suppliers that do not sell exactly this amount.
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/5.0
Behavior3/5

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

Annotations already flag this as a destructive, non-read-only, open-world write. The description still adds useful context they don't carry: it spends the TRX balance, requires explicit user confirmation, and needs an API key at the rent or full level. It does not say what happens on partial failure or what a successful purchase yields, though the schema's idempotency_key partially covers retry semantics.

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?

Roughly 35 words across four short sentences: purpose first, then the scope limit, then the money warning, then the auth requirement. Every sentence carries a distinct constraint and nothing is repeated from 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 destructive purchase tool with 6 parameters and no output schema, the description covers the essentials an agent needs before calling: cost, confirmation duty, auth level, and scope. The remaining gap is the recommended quote-then-buy flow and what the returned order looks like.

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%, including the volume hint (~345 points per USDT transfer) and the exact_volume/exact_duration/exact idempotency_key semantics, so the schema carries the parameter burden. The description adds only that payment is charged to the TRX balance, which isn't a parameter property.

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 ('Buy bandwidth for an address'), the payment source ('charge the TRX balance'), and negates a behavior an agent might otherwise assume ('Does not activate the address'). That negation separates it from activate_address / rent_energy without needing the schemas opened.

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?

Gives real when-to-use guidance: confirm with the user before spending, and it is not the tool for activating an address. What's missing is the natural precede step — nothing tells the agent to call quote_bandwidth first to see the price before committing money.

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