Skip to main content
Glama
@cryptoapis-io/mcp-prepare-transactions

@cryptoapis-io/mcp-prepare-transactions

Official

Prepare unsigned Tron transaction

prepare_transactions_tron
Read-onlyIdempotent

Build unsigned Tron transactions for TRX, TRC-20, and NFT transfers, returning fee details and transaction data ready for local signing and broadcasting.

Instructions

Build unsigned Tron transactions ready for signing. Returns the unsigned transaction and fee details. After preparing, sign locally (tron_sign) and broadcast via broadcast_signed_transaction. These are Tron's dedicated prepare-transactions endpoints, distinct from the generic EVM ones used for other chains.

Actions: • native-coins: Build an unsigned native TRX transfer • trc20-tokens: Build an unsigned TRC-20 token transfer • non-fungible-tokens: Build an unsigned TRC-721/TRC-1155 NFT transfer

Credits by action (source: OpenAPI): • native-coins: 90 • non-fungible-tokens: 128 • trc20-tokens: 120

Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.

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": {
      "action": "<action>",
      "network": "<network>"
    },
    "name": "prepare_transactions_tron"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
amountNoAmount in sun for native-coins, or token base units for trc20-tokens (required for native-coins, trc20-tokens)
senderNoSender's Tron address (required for all actions)
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
tokenIdNoNFT token ID (required for non-fungible-tokens)
contractNoToken contract address (required for trc20-tokens, non-fungible-tokens)
feeLimitNoMax TRX fee limit in sun (trc20-tokens, non-fungible-tokens only)
recipientNoRecipient's Tron address (required for all actions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real value beyond them: it says the output is an unsigned transaction plus fee details, and that actual credit spend is returned in response headers. The per-action credit table is useful cost context, though it is hedged as indicative.

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?

Front-loaded with the core purpose and workflow, then structured action and credit lists. Every section is scannable and the credit caveat is stated once rather than repeated.

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 9-parameter, no-output-schema tool, the description covers purpose, workflow, action variants, and return contents (unsigned tx + fee details). Only minor gaps remain, such as whether the unsigned transaction is returned as raw hex or an object.

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 coverage is 100%, so the schema already documents every parameter including action-specific requirements (amount in sun, tokenId for NFTs, feeLimit scope). The description's action list maps to the enum but adds no syntax or format detail beyond the schema, so baseline 3 applies.

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 ('Build unsigned Tron transactions ready for signing') and explicitly distinguishes itself from the generic EVM prepare endpoints. The three action variants are enumerated, so an agent knows exactly what it can produce.

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 a clear workflow: prepare here, then sign locally with tron_sign, then broadcast via broadcast_signed_transaction, and notes this is Tron-specific rather than the generic EVM path. It lacks explicit when-not guidance (e.g. what to do for non-Tron chains beyond the sibling name), but the context is clear.

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