Skip to main content
Glama
Zetrix-Chain

Zetrix MCP Server

Official
by Zetrix-Chain

zetrix_submit_transaction

Submit signed transactions to the Zetrix blockchain for execution, enabling users to broadcast and process completed transactions on the network.

Instructions

Submit signed transaction to blockchain for execution

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transactionBlobYesSerialized transaction blob
signaturesYesArray of signature objects with sign_data and public_key

Implementation Reference

  • Core handler function that executes the tool logic by sending the transaction blob and signatures to the Zetrix RPC /submitTransaction endpoint via POST request.
    async submitTransaction(
      transactionBlob: string,
      signatures: Array<{ sign_data: string; public_key: string }>
    ): Promise<ZetrixSubmitResult> {
      try {
        const response = await this.client.post("/submitTransaction", {
          transaction_blob: transactionBlob,
          signatures,
        });
    
        if (response.data.error_code !== 0) {
          throw new Error(
            response.data.error_desc || `API Error: ${response.data.error_code}`
          );
        }
    
        return response.data.result;
      } catch (error) {
        if (axios.isAxiosError(error)) {
          throw new Error(`Failed to submit transaction: ${error.message}`);
        }
        throw error;
      }
    }
  • MCP server switch-case handler that processes the tool call, validates arguments, invokes ZetrixClient.submitTransaction, and formats the response.
    case "zetrix_submit_transaction": {
      if (!args) {
        throw new Error("Missing arguments");
      }
      const result = await zetrixClient.submitTransaction(
        args.transactionBlob as string,
        args.signatures as Array<{ sign_data: string; public_key: string }>
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • Tool schema definition including name, description, and input validation schema for the zetrix_submit_transaction tool.
    {
      name: "zetrix_submit_transaction",
      description: "Submit signed transaction to blockchain for execution",
      inputSchema: {
        type: "object",
        properties: {
          transactionBlob: {
            type: "string",
            description: "Serialized transaction blob",
          },
          signatures: {
            type: "array",
            description: "Array of signature objects with sign_data and public_key",
          },
        },
        required: ["transactionBlob", "signatures"],
      },
    },
  • src/index.ts:768-770 (registration)
    Registration of the tools list handler, making the zetrix_submit_transaction tool discoverable via ListToolsRequest.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { tools };
    });
  • TypeScript interface defining the expected output structure from submitTransaction.
    export interface ZetrixSubmitResult {
      hash: string;
      results: any[];
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the tool submits for 'execution,' implying a write/mutation operation, but lacks details on permissions, rate limits, irreversible effects, or response behavior. This is inadequate for a tool that likely alters blockchain state.

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 a single, efficient sentence with zero waste. It's front-loaded with the core action and purpose, making it easy to parse quickly.

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

Completeness2/5

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

Given no annotations and no output schema, this is a mutation tool with significant behavioral gaps. The description doesn't explain what happens on success/failure, return values, or error conditions. It's incomplete for a tool that submits transactions to a blockchain.

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%, with clear parameter documentation, so the baseline is 3. The description adds no extra meaning about parameters beyond implying 'signed' relates to 'signatures,' which is already covered in the schema. No compensation is needed or provided.

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 action ('submit') and target ('signed transaction to blockchain for execution'), making the purpose evident. However, it doesn't differentiate from sibling tools like 'zetrix_ws_submit_transaction' or 'zetrix_test_transaction', which appear to serve similar submission functions, preventing a score of 5.

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. With siblings like 'zetrix_ws_submit_transaction' (WebSocket-based) and 'zetrix_test_transaction' (likely for testing), there's clear potential for confusion, but the description offers no context or exclusions.

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/Zetrix-Chain/zetrix-mcp-server'

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