Skip to main content
Glama
CryptoAPIs-io

@cryptoapis-io/mcp-prepare-transactions

Official

prepare_transactions_tron

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

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.

Input Schema

TableJSON 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.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden; it discloses that the output is unsigned, returns fee details, and incurs per-action credit costs. It does not state auth/permission requirements, whether the call has side effects on-chain, or rate limits, which is a moderate gap for a no-annotation tool.

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 first sentence states the core purpose, then a flow sentence, then a scannable action/credit list. The credits disclaimer is slightly verbose but earns its place by warning costs may change.

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?

With no output schema and no annotations, the description covers the purpose, the return shape at a high level (unsigned tx + fee details), the follow-up calls, and per-action costs. Missing auth and side-effect details keep it from being fully complete, but it is adequate for a 9-param builder tool.

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%, so the per-parameter meaning (amount units, sender/recipient, contract, tokenId, feeLimit) is already documented. The description adds the action enumeration with credit costs, which is marginal value beyond the schema enum.

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 (build/prepare) and resource (unsigned Tron transactions) and explicitly distinguishes itself from the generic EVM prepare endpoints used for other chains. The three action bullets make the scope concrete, so an agent can tell it apart from the sibling prepare_transactions_* tools.

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 an explicit downstream flow: prepare, then sign locally with tron_sign, then broadcast via broadcast_signed_transaction. It also names the alternative (generic EVM endpoints) and the condition (other chains), leaving little to inference.

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