Skip to main content
Glama

Decode Tron raw_data / compute txid (dev tool)

tron_tx
Read-onlyIdempotent

Tron transaction inspection on UNSIGNED raw_data hex (tronweb raw_data_hex): op=decode (contracts, owner/to, amount_sun, TRC-20 call, ref block, expiry, fee limit, txid), txid (sha256 of raw_data). A tx that carries signatures is refused (signed_tx_refused); signed bytes stay in the wallet. Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).

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": {
      "op": "<op>",
      "hex": "<hex>"
    },
    "name": "tron_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
hexYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds real context beyond that: it is pure offline computation, nothing is fetched or stored, signatures are refused with a named error code, and txid is defined as sha256 of raw_data. It does not describe the exact output shape of decode beyond a field list.

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

Conciseness3/5

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

The core is front-loaded and dense with useful specifics, but the trailing 'how to combine' sentence stacks seven workflow names in parentheses, which reads as keyword padding rather than routing guidance. The double-parenthetical in the first sentence also slows parsing.

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, the description compensates by enumerating decode's return fields (contracts, owner/to, amount_sun, TRC-20 call, ref block, expiry, fee limit, txid) and defining the txid op's result. An agent has enough to choose and call it correctly; only error/edge behavior beyond signed_tx_refused is unstated.

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 coverage is 0%, so the description carries the burden and mostly does: op values are distinguished (decode returns parsed fields, txid returns the sha256 of raw_data) and hex is pinned to tronweb's raw_data_hex with the unsigned-only constraint. The 1024-char maxLength and enum values live only in the schema, and hex encoding details (hex string vs bytes, prefix) are left implicit.

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?

States a specific verb+resource: inspection of Tron UNSIGNED raw_data hex, with two named operations (decode, txid) and the fields decode returns. It implicitly separates itself from write-path siblings by refusing signed transactions, but never names the neighbors an agent might confuse it with (explain_transaction, verify_tx, broadcast_tx).

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 boundary condition: only unsigned raw_data hex is accepted, and a tx carrying signatures is refused (signed_tx_refused). It also points to swapchan_playbook for workflow-level orchestration. What is missing is an explicit 'use explain_transaction instead when...' routing statement against the closest siblings.

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.