Skip to main content
Glama
tdnupe3

Coin Railz MCP Server

by tdnupe3

build_transaction

Create unsigned blockchain transactions with gas estimates for sending tokens or native currency between addresses on supported networks.

Instructions

Build a transaction object ready for signing.

Args: from_address: Sender wallet address to_address: Recipient wallet address value: Amount to send (in token units or wei) chain: Blockchain network token_address: Optional ERC-20 token address (native token if not provided)

Returns: Unsigned transaction object with gas estimates.

Price: $0.15

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_addressYes
to_addressYes
valueYes
chainNoethereum
token_addressNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function 'build_transaction' that builds a transaction using the 'transaction-builder' service.
    async def build_transaction(
        from_address: str,
        to_address: str,
        value: str,
        chain: str = "ethereum",
        token_address: str = None
    ) -> str:
        """
        Build a transaction object ready for signing.
        
        Args:
            from_address: Sender wallet address
            to_address: Recipient wallet address
            value: Amount to send (in token units or wei)
            chain: Blockchain network
            token_address: Optional ERC-20 token address (native token if not provided)
        
        Returns:
            Unsigned transaction object with gas estimates.
        
        Price: $0.15
        """
        payload = {
            "from": from_address,
            "to": to_address,
            "value": value,
            "chain": chain
        }
        if token_address:
            payload["tokenAddress"] = token_address
        result = await call_coinrailz_service("transaction-builder", payload)
        return json.dumps(result, indent=2)
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behaviors: the tool builds an unsigned transaction with gas estimates, handles native and ERC-20 tokens, and has a cost ('Price: $0.15'). However, it lacks details on permissions, rate limits, error conditions, or what 'ready for signing' entails (e.g., format). It doesn't contradict annotations, but gaps remain for a mutation 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?

The description is well-structured and front-loaded with the core purpose. The Args/Returns sections efficiently document parameters and output. The 'Price' line adds necessary context. It's slightly verbose but each sentence earns its place, with no redundant information.

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?

Given complexity (transaction building with 5 params), no annotations, but an output schema exists (implied by 'Returns'), the description is reasonably complete. It covers purpose, parameters, output, and cost. However, for a mutation tool, it could better explain behavioral aspects like side effects or error handling to fully compensate for missing annotations.

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 description coverage is 0%, so the description must compensate. It adds meaningful semantics for all 5 parameters: explaining 'from_address' as sender, 'to_address' as recipient, 'value' in token units/wei, 'chain' as blockchain network, and 'token_address' as optional for ERC-20 vs. native. This clarifies beyond schema titles, though it could specify formats (e.g., hex for addresses).

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?

The description clearly states the tool's purpose: 'Build a transaction object ready for signing.' It specifies the action (build), resource (transaction object), and outcome (ready for signing). However, it doesn't explicitly differentiate from sibling tools like 'bridge_tokens' or 'manage_approvals', which might also involve transaction building in different contexts.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing wallet access), exclusions, or comparisons to siblings like 'bridge_tokens' for cross-chain transfers or 'manage_approvals' for token approvals. Usage is implied but not explicitly stated.

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

Install Server

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/tdnupe3/mcp-server-coinrailz'

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