Skip to main content
Glama

write_contract

Destructive

Execute state-changing functions on a TRON smart contract using a configured wallet. Provide contract address, function name, and optional arguments.

Instructions

Execute state-changing functions on a smart contract. Requires configured wallet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
abiNoOptional contract ABI array. If not provided, will fetch from chain. Use for contracts with incomplete on-chain ABI.
argsNoFunction arguments (supports arrays and objects for complex types)
valueNoTRX value to send (in Sun)
networkNoNetwork name. Defaults to mainnet.
functionNameYesFunction name to call
contractAddressYesThe contract address
Install Server

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false. The description adds the wallet requirement, which is useful, but does not elaborate on side effects, transaction broadcasting, or return behavior. No contradiction with annotations.

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?

The description is two short sentences with zero filler. Every word earns its place, and the key point ('state-changing') is front-loaded.

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

Completeness3/5

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

The tool has 6 parameters and no output schema, but the description provides only the essential purpose and a wallet prerequisite. It lacks details on expected return values, failure modes, or how it compares to transfer tools. Annotations and schema cover some gaps but not the return/process aspects.

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%, and each parameter is well-described (e.g., abi, args, value). The tool description adds no parameter-specific information, so it falls at the baseline for high schema coverage.

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?

The description uses the specific verb 'Execute' and resource 'state-changing functions on a smart contract,' clearly distinguishing this from read_contract. It states the core action without ambiguity.

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

Usage Guidelines3/5

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

The description implies usage for state-changing operations but does not explicitly list when to use it versus alternatives like read_contract for reads or transfer_trx for transfers. The prerequisite 'Requires configured wallet' offers some context but no exclusions.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BofAI/mcp-server-tron'

If you have feedback or need assistance with the MCP directory API, please join our Discord server